From 535c8a5cceaf5d46c564dd1576b114bd972f79b5 Mon Sep 17 00:00:00 2001 From: kingluo Date: Tue, 20 Sep 2022 15:02:07 +0800 Subject: [PATCH] use jo in ngx.re.match --- apisix/plugins/cas-auth.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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