"/bad-request?q=qwert')) UNION SELECT '1', '2', '3', '4', '5', '6', '7', '8' FROM sqlite_master--"
local request_url = string.gsub( ngx.var.request_uri, "?.*", ""); local request_url_args = ngx.var.args; if request_url_args and #request_url_args ~= 0 then request_url = request_url .. "?" .. request_url_args; end
local request_url = string.gsub( ngx.var.request_uri, "?.*", "");
local request_url_args = ngx.var.args;
if request_url_args and #request_url_args ~= 0 then
request_url = request_url .. "?" .. request_url_args;
end