mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Replaces lower case implementation
This commit is contained in:
parent
84b30a63b5
commit
4121abdf0c
@ -30,11 +30,8 @@ namespace transformations {
|
||||
void LowerCase::execute(Transaction *t,
|
||||
ModSecString &in,
|
||||
ModSecString &out) {
|
||||
std::locale loc;
|
||||
out.resize(in.size());
|
||||
for (std::string::size_type i=0; i < in.size(); ++i) {
|
||||
out[i] = std::tolower(in[i], loc);
|
||||
}
|
||||
std::transform(in.begin(), in.end(), out.begin(), ::tolower);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user