From 9ffd7c91b7b94248b6fc247024857a8fbefbe27d Mon Sep 17 00:00:00 2001 From: dami Date: Sat, 6 Dec 2025 16:27:00 +0800 Subject: [PATCH] Update util.lua --- plugins/openresty/resty/obf/util.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/openresty/resty/obf/util.lua b/plugins/openresty/resty/obf/util.lua index 33bbc71a1..58f0dee7b 100644 --- a/plugins/openresty/resty/obf/util.lua +++ b/plugins/openresty/resty/obf/util.lua @@ -90,7 +90,7 @@ end -- 添加混淆代码 -function _M.obf_add_data(content) +function _M.obf_rand_data(content) content = content:gsub("(.-)", function(attrs, body) local b = body local function rand_ident(len) @@ -131,7 +131,6 @@ function _M.obf_add_data(content) b = b:gsub("%s*([%(%),;:%{%}%[%]%+%-%*%=<>])%s*", "%1") return "" .. b .. "" end) - content = content:gsub("[\r\n]+", ""):gsub(">%s+<", "><") return content end