Skip to content

Commit

Permalink
fix post data mpty
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed Sep 11, 2014
1 parent 513c19d commit 686219a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 686219a

Please sign in to comment.