mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47: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 TimeEpoch : public Variable {
|
||||
public:
|
||||
explicit TimeEpoch(std::string _name)
|
||||
: Variable(_name) { }
|
||||
: Variable(_name),
|
||||
m_retName("TIME_EPOCH") { }
|
||||
|
||||
void evaluateInternal(Transaction *transaction,
|
||||
std::vector<const collection::Variable *> *l) override;
|
||||
std::string m_retName;
|
||||
};
|
||||
|
||||
} // namespace Variables
|
||||
|
Reference in New Issue
Block a user