mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Fix setenv action to strdup key=variable
This commit is contained in:
@@ -37,7 +37,7 @@ bool SetENV::evaluate(Rule *rule, Transaction *t) {
|
||||
ms_dbg_a(t, 8, "Setting envoriment variable: "
|
||||
+ colNameExpanded + ".");
|
||||
|
||||
putenv((char *)colNameExpanded.c_str());
|
||||
putenv(strdup(colNameExpanded.c_str()));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user