mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Variables resolution results now stored into a std::vector instead of std::list
This commit is contained in:
@@ -26,15 +26,10 @@
|
||||
namespace ModSecurity {
|
||||
namespace Variables {
|
||||
|
||||
std::list<transaction::Variable *> *
|
||||
HighestSeverity::evaluate(Assay *assay) {
|
||||
std::list<transaction::Variable *> *resl =
|
||||
new std::list<transaction::Variable *>();
|
||||
|
||||
resl->push_back(new transaction::Variable("HIGHEST_SEVERITY",
|
||||
void HighestSeverity::evaluateInternal(Assay *assay,
|
||||
std::vector<const transaction::Variable *> *l) {
|
||||
l->push_back(new transaction::Variable("HIGHEST_SEVERITY",
|
||||
std::to_string(assay->highest_severity)));
|
||||
|
||||
return resl;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user