fix post data mpty

pull/28/head
loveshell 2014-09-11 11:39:45 +08:00
parent 513c19dea5
commit 686219a71c
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ function ua()
end
function body(data)
for _,rule in pairs(postrules) do
if rule ~="" and ngxmatch(unescape(data),rule,"imjo") then
if rule ~="" and data~="" and ngxmatch(unescape(data),rule,"imjo") then
log('POST',ngx.var.request_uri,data,rule)
say_html()
return true