Skip to content

Commit

Permalink
low ngxlua support ngxmatch
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed May 14, 2015
1 parent 834c937 commit 2897e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2897e49

Please sign in to comment.