From 632f12054060c6f98be48a0220b3c614c3ad1bbf Mon Sep 17 00:00:00 2001 From: loveshell <82163261@qq.com> Date: Fri, 17 Apr 2015 22:05:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E8=BD=AC=E4=B9=89=E4=B8=8B?= =?UTF-8?q?=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 32010b2..2a70df5 100644 --- a/init.lua +++ b/init.lua @@ -91,6 +91,7 @@ function whiteurl() end function fileExtCheck(ext) local items = Set(fileExtension) + ext=string.lower(ext) if ext then if not items[ext] then log('POST',ngx.var.request_uri,"-","file attack with ext "..ext)