fix wooyun-2010-0104525

pull/81/head
TonyChyi 2016-01-06 16:36:38 +08:00
parent fa5bf74cbe
commit c56b191735
2 changed files with 141 additions and 142 deletions

View File

@ -107,18 +107,17 @@ function Set (list)
for _, l in ipairs(list) do set[l] = true end
return set
end
function args()
for _,rule in pairs(argsrules) do
local args = ngx.req.get_uri_args()
for key, val in pairs(args) do
if type(val)=='table' then
if val ~= false then
data=table.concat(val, " ")
end
data=table.concat(val, " ")
else
data=val
end
if data and type(data) ~= "boolean" and rule ~="" and ngxmatch(unescape(data),rule,"isjo") then
if data and type(data) ~= "boolean" and rule ~="" and ngxmatch(unescape(data),rule,"ijos") then
log('GET',ngx.var.request_uri,"-",rule)
say_html()
return true