mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Adds support to macro expansion in setvar action
This commit is contained in:
10
src/utils.cc
10
src/utils.cc
@@ -112,6 +112,16 @@ std::string tolower(std::string str) {
|
||||
return value;
|
||||
}
|
||||
|
||||
std::string toupper(std::string str) {
|
||||
std::locale loc;
|
||||
std::string value;
|
||||
|
||||
for (std::string::size_type i=0; i < str.length(); ++i) {
|
||||
value.assign(value + std::toupper(str[i], loc));
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
const char SAFE[256] = {
|
||||
/* 0 1 2 3 4 5 6 7 8 9 A B C D E F */
|
||||
|
Reference in New Issue
Block a user