mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-03 13:04:37 +03:00
Improves macro expansion speed and variable set attribution
This commit is contained in:
@@ -38,6 +38,14 @@ class MacroExpansion {
|
||||
modsecurity::Rule *r, Transaction *transaction);
|
||||
static std::string expandKeepOriginal(const std::string& input,
|
||||
Transaction *transaction);
|
||||
|
||||
static inline bool compareStrNoCase(const std::string &a, const std::string &b) {
|
||||
return a.size() == b.size()
|
||||
&& std::equal(a.begin(), a.end(), b.begin(),
|
||||
[](char aa, char bb) {
|
||||
return toupper(aa) == bb;
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user