Commit 0872cc57 by Joneq

增加对script的验证

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