Commit 78788dc9 by Joneq

增加对script的验证

parent 683c8374
Showing with 3 additions and 0 deletions
......@@ -64,8 +64,11 @@ elseif "POST" == ngx.var.request_method then
ngx.req.read_body()
args = ngx.req.get_post_args()
end
ngx.say(args, err)
ngx.say(ngx.var.request_method, err)
---如果参数中有<script>...</script>怎跳转google验证
if args ~= nil then
ngx.say(args, err)
for k, v in ipairs(args) do
ngx.say(v, err)
ngx.say(string.find (v, '<script>', 1), err)
......
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