Commit 443b0840 by Joneq

增加值不是nil和值是字符串的判断

parent ab441415
Showing with 1 additions and 1 deletions
......@@ -113,7 +113,7 @@ elseif "POST" == ngx.var.request_method then
args = ngx.req.get_post_args()
end
---如果参数中有<script>...</script>怎跳转google验证
---如果参数中有<script>...</script>怎跳转google验证,增加值不是nil和值是字符串的判断
if args ~= nil then
for k, v in pairs(args) do
if v ~= nil and type(v) == 'string' and 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