Skip to content

Commit

Permalink
Modify Ext regex
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 17, 2017
1 parent 314a2f6 commit 5af60ec
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 @@ -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
Expand Down

0 comments on commit 5af60ec

Please sign in to comment.