mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Adds support for transformations inside Lua engine
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
function main()
|
||||
ret = nil
|
||||
m.log(9, "Lets rock.");
|
||||
|
||||
var = m.getvar("tx.test");
|
||||
var = m.getvar("tx.test" , "lowercase");
|
||||
if var == nil then
|
||||
m.log(9, "Don't know what to say...");
|
||||
return ret
|
||||
return ret;
|
||||
end
|
||||
|
||||
if var == "FELIPE"
|
||||
if var == "FELIPE" then
|
||||
m.log(9, "Ops.");
|
||||
elseif var == "felipe"
|
||||
elseif var == "felipe" then
|
||||
m.log(9, "Just fine.");
|
||||
ret ="ok";
|
||||
else
|
||||
m.log(9, "Really?");
|
||||
end
|
||||
|
||||
return ret
|
||||
return "whee"
|
||||
end
|
||||
|
Reference in New Issue
Block a user