From 2897e494ea61a315148a7cf9e7ae2e5a16470737 Mon Sep 17 00:00:00 2001 From: loveshell <82163261@qq.com> Date: Thu, 14 May 2015 12:09:54 +0800 Subject: [PATCH] low ngxlua support ngxmatch --- waf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waf.lua b/waf.lua index 1cd1659..93c61d5 100644 --- a/waf.lua +++ b/waf.lua @@ -41,7 +41,7 @@ elseif PostCheck then return true end size = size + len(data) - local m = ngx.re.match(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