mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-02 20:47:48 +03:00
parser: Improves the reading for the url in the redirect action
This commit is contained in:
@@ -109,6 +109,10 @@ std::string removeBracketsIfNeeded(std::string a) {
|
||||
a.pop_back();
|
||||
a.erase(0, 1);
|
||||
}
|
||||
if (a.length() > 1 && a.at(0) == '\'' && a.at(a.length()-1) == '\'') {
|
||||
a.pop_back();
|
||||
a.erase(0, 1);
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user