diff --git a/apisix/plugins/cas-auth.lua b/apisix/plugins/cas-auth.lua index 4fca249022201..b3f6e7a6deff4 100644 --- a/apisix/plugins/cas-auth.lua +++ b/apisix/plugins/cas-auth.lua @@ -117,7 +117,7 @@ local function validate(conf, ctx, ticket) if res and res.status == ngx.HTTP_OK and res.body ~= nil then if core.string.find(res.body, "") then - local m = ngx_re_match(res.body, "(.*?)"); + local m = ngx_re_match(res.body, "(.*?)", "jo"); if m then return m[1] end