Commit 4b15dc7d by Joneq

增加对script的验证

parent 6add0f2b
Showing with 5 additions and 3 deletions
......@@ -65,9 +65,11 @@ elseif "POST" == request_method then
args = ngx.req.get_post_args()
end
---如果参数中有<script>...</script>怎跳转google验证
for k, v in ipairs(args) do
if string.find (v, '<script>', 1) ~= nil then
redirect.checkgoogle(red)
if args ~= nil then
for k, v in ipairs(args) do
if string.find (v, '<script>', 1) ~= nil then
redirect.checkgoogle(red)
end
end
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