mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fix: Only delete Multipart tmp files after rules have run
This commit is contained in:
committed by
Felipe Zimmerle
parent
1b7aa42c77
commit
d72be1c470
10
test/test-cases/data/inspectFile-abcdef.lua
Normal file
10
test/test-cases/data/inspectFile-abcdef.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/lua
|
||||
|
||||
function main(filename)
|
||||
local file = io.open(filename, 'r')
|
||||
local chunk = file:read(1024)
|
||||
local ret = string.match(chunk, 'abcdef')
|
||||
io.close(file)
|
||||
|
||||
return ret
|
||||
end
|
Reference in New Issue
Block a user