Commit 4af27a1e by Joneq

增加对script的验证

parent 112311c2
Showing with 2 additions and 2 deletions
......@@ -58,9 +58,9 @@ end
-------对nginx的参数xss进行处理
if "GET" == request_method then
if "GET" == ngx.var.request_method then
args = ngx.req.get_uri_args()
elseif "POST" == request_method then
elseif "POST" == ngx.var.request_method then
ngx.req.read_body()
args = ngx.req.get_post_args()
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment