From 5af60ec0ee794e8590eb7741a69f513ff97c3c8e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 17 Mar 2017 15:14:51 +0800 Subject: [PATCH] Modify Ext regex --- waf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waf.lua b/waf.lua index 8ce05f4..a5f6790 100644 --- a/waf.lua +++ b/waf.lua @@ -42,7 +42,7 @@ elseif PostCheck then return true end size = size + len(data) - local m = ngxmatch(data,[[Content-Disposition: form-data;(.+)filename="(.+)\\.(.*)"]],'ijo') + local m = ngxmatch(data,[[Content-Disposition: form-data;(.+)filename="(.+)\.(.*)"]],'ijo') if m then fileExtCheck(m[3]) filetranslate = true