mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 01:51:52 +03:00
Changes debuglogs schema to avoid unecessary str allocation
This commit is contained in:
@@ -34,10 +34,8 @@ bool SetENV::init(std::string *error) {
|
||||
bool SetENV::evaluate(Rule *rule, Transaction *t) {
|
||||
std::string colNameExpanded(m_string->evaluate(t));
|
||||
|
||||
#ifndef NO_LOGS
|
||||
t->debug(8, "Setting envoriment variable: "
|
||||
ms_dbg_a(t, 8, "Setting envoriment variable: "
|
||||
+ colNameExpanded + ".");
|
||||
#endif
|
||||
|
||||
putenv((char *)colNameExpanded.c_str());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user