fix table concat bug

fix /ngx_lua_waf/waf.lua:75: invalid value (boolean) at index 1 in table for 'concat' 
Issue:https://github.com/loveshell/ngx_lua_waf/issues/69
pull/70/head
zhengji 2015-10-27 18:05:39 +08:00
parent f609d3296d
commit c7ce9b7f02
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ elseif PostCheck then
end end
for key, val in pairs(args) do for key, val in pairs(args) do
if type(val) == "table" then if type(val) == "table" then
if type(val[1]) == "boolean" then
return
end
data=table.concat(val, ", ") data=table.concat(val, ", ")
else else
data=val data=val