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
|
-- @param qs string
|
||||||
-- @return path string
|
-- @return path string
|
||||||
function M.getpath(qs)
|
function M.getpath(qs)
|
||||||
qs = qs:gsub('%?(.*)', '')
|
local path = qs:gsub('%?(.*)', '')
|
||||||
local path = qs:gsub("([^/]+)", function (s) return encode(decode(s), M.options.legal_in_path) end)
|
|
||||||
return path or ""
|
return path or ""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user