mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-20 19:16:40 +03:00
Improves the secrules parser
This commit is contained in:
@@ -30,8 +30,10 @@ namespace actions {
|
||||
Rev::Rev(std::string action)
|
||||
: Action(action, ConfigurationKind),
|
||||
m_rev(action) {
|
||||
m_rev.erase(0, 1);
|
||||
m_rev.pop_back();
|
||||
if (m_rev.at(0) == '\'') {
|
||||
m_rev.erase(0, 1);
|
||||
m_rev.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -87,7 +87,10 @@ Transformation* Transformation::instantiate(std::string a) {
|
||||
IF_MATCH(lowercase) { return new LowerCase(a); }
|
||||
IF_MATCH(md5) { return new Md5(a); }
|
||||
IF_MATCH(none) { return new None(a); }
|
||||
IF_MATCH(normalizePathWin) { return new NormalisePathWin(a); }
|
||||
IF_MATCH(normalisePathWin) { return new NormalisePathWin(a); }
|
||||
IF_MATCH(normalizePath) { return new NormalisePath(a); }
|
||||
IF_MATCH(normalisePath) { return new NormalisePath(a); }
|
||||
IF_MATCH(normalisePath) { return new NormalisePath(a); }
|
||||
IF_MATCH(parity_even_7bit) { return new ParityEven7bit(a); }
|
||||
IF_MATCH(parity_odd_7bit) { return new ParityOdd7bit(a); }
|
||||
|
||||
Reference in New Issue
Block a user