mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Fix issue with pplet.qs taking whole query but not parsing the path out of it for the map loopup, caused issues with selecting captcha mode
This commit is contained in:
@ -154,7 +154,7 @@ function _M.view(applet)
|
||||
|
||||
-- check if captcha is enabled, path+domain priority, then just domain, and 0 otherwise
|
||||
local captcha_enabled = false
|
||||
local path = applet.qs; --because on /.basedflare/bot-check?/whatever, .qs (query string) holds the "path"
|
||||
local path = url.getpath(applet.qs); --because on /.basedflare/bot-check?/whatever, .qs (query string) holds the old path
|
||||
|
||||
local ddos_map_lookup = ddos_map:lookup(host..path) or ddos_map:lookup(host)
|
||||
if ddos_map_lookup ~= nil then
|
||||
|
Reference in New Issue
Block a user