mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Remove unnecessary code in getpath method
This commit is contained in:
@ -409,8 +409,7 @@ end
|
||||
-- @param qs string
|
||||
-- @return path string
|
||||
function M.getpath(qs)
|
||||
qs = qs:gsub('%?(.*)', '')
|
||||
local path = qs:gsub("([^/]+)", function (s) return encode(decode(s), M.options.legal_in_path) end)
|
||||
local path = qs:gsub('%?(.*)', '')
|
||||
return path or ""
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user