mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fix setenv action to strdup key=variable
This commit is contained in:
parent
af137442d5
commit
407b6c0f4b
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
|||||||
v3.0.4 - YYYY-MMM-DD (to be released)
|
v3.0.4 - YYYY-MMM-DD (to be released)
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
- Fix setenv action to strdup key=variable
|
||||||
|
[@zimmerle]
|
||||||
- Allow 0 length JSON requests.
|
- Allow 0 length JSON requests.
|
||||||
[Issue #1822 - @allanbomsft, @zimmerle, @victorhora, @marcstern]
|
[Issue #1822 - @allanbomsft, @zimmerle, @victorhora, @marcstern]
|
||||||
- Fix "make dist" target to include default configuration
|
- Fix "make dist" target to include default configuration
|
||||||
|
@ -37,7 +37,7 @@ bool SetENV::evaluate(Rule *rule, Transaction *t) {
|
|||||||
ms_dbg_a(t, 8, "Setting envoriment variable: "
|
ms_dbg_a(t, 8, "Setting envoriment variable: "
|
||||||
+ colNameExpanded + ".");
|
+ colNameExpanded + ".");
|
||||||
|
|
||||||
putenv((char *)colNameExpanded.c_str());
|
putenv(strdup(colNameExpanded.c_str()));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user