mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fixed inspectFile operator does not pass FILES_TMPNAMES
pass FILES_TMPNAMES variable to lua engine Fixed Lua engine should also be aware of the variable and pass it to the target lua script main function
This commit is contained in:
@@ -51,7 +51,7 @@ bool InspectFile::init(const std::string ¶m2, std::string *error) {
|
||||
|
||||
bool InspectFile::evaluate(Transaction *transaction, const std::string &str) {
|
||||
if (m_isScript) {
|
||||
return m_lua.run(transaction);
|
||||
return m_lua.run(transaction, str);
|
||||
} else {
|
||||
FILE *in;
|
||||
char buff[512];
|
||||
|
Reference in New Issue
Block a user