mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 18:30:35 +03:00
Avoids string copy by working with pointers while resolving variables
This commit is contained in:
@@ -33,11 +33,13 @@ namespace Variables {
|
||||
class XML : public Variable {
|
||||
public:
|
||||
explicit XML(std::string _name)
|
||||
: Variable(_name) { }
|
||||
: Variable(_name),
|
||||
m_plain("[XML document tree]") { }
|
||||
|
||||
void evaluateInternal(Transaction *transaction,
|
||||
Rule *rule,
|
||||
std::vector<const collection::Variable *> *l) override;
|
||||
std::string m_plain;
|
||||
};
|
||||
|
||||
} // namespace Variables
|
||||
|
||||
Reference in New Issue
Block a user