mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Adds support to quoted ID action
This commit is contained in:
@@ -29,6 +29,10 @@ RuleId::RuleId(std::string action)
|
||||
this->action_kind = ConfigurationKind;
|
||||
std::string a = action;
|
||||
a.erase(0, 3);
|
||||
if (a.at(0) == '\'') {
|
||||
a.erase(0, 1);
|
||||
a.pop_back();
|
||||
}
|
||||
this->rule_id = std::stod(a);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user