diff --git a/init.lua b/init.lua index 290f6fd..ee2a29f 100644 --- a/init.lua +++ b/init.lua @@ -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