mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Avoids string copy by working with pointers while resolving variables
This commit is contained in:
@@ -31,10 +31,12 @@ namespace Variables {
|
||||
class TimeDay : public Variable {
|
||||
public:
|
||||
explicit TimeDay(std::string _name)
|
||||
: Variable(_name) { }
|
||||
: Variable(_name),
|
||||
m_retName("TIME_DAY") { }
|
||||
|
||||
void evaluateInternal(Transaction *transaction,
|
||||
std::vector<const collection::Variable *> *l) override;
|
||||
std::string m_retName;
|
||||
};
|
||||
|
||||
} // namespace Variables
|
||||
|
Reference in New Issue
Block a user