Skip to content

Commit

Permalink
use jo in ngx.re.match
Browse files Browse the repository at this point in the history
  • Loading branch information
kingluo committed Sep 20, 2022
1 parent 20ebecd commit 535c8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/plugins/cas-auth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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, "<cas:authenticationSuccess>") then
local m = ngx_re_match(res.body, "<cas:user>(.*?)</cas:user>");
local m = ngx_re_match(res.body, "<cas:user>(.*?)</cas:user>", "jo");
if m then
return m[1]
end
Expand Down

0 comments on commit 535c8a5

Please sign in to comment.