diff --git a/plugins/openresty/resty/obf/util.lua b/plugins/openresty/resty/obf/util.lua index 94bf03f6b..502c1034b 100644 --- a/plugins/openresty/resty/obf/util.lua +++ b/plugins/openresty/resty/obf/util.lua @@ -71,7 +71,7 @@ function _M.data_filter(content) -- b = b:gsub("%s+", " ") -- return "" .. b .. "" -- end) - return content:gsub("[\r\n]+", ""):gsub(">%s+<", "><") + return content:gsub(">[%s\r\n]+<", "><") end