Commit 299b4438 by Joneq

增加对script的验证

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