mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Using the decoded uri in REQUEST_URI instead of the encoded one
This commit is contained in:
parent
7a36499f22
commit
9116a19bcc
@ -580,10 +580,11 @@ bool Rule::evaluate(Transaction *trasn) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
} else if (!a->isDisruptive()) {
|
} else if (!a->isDisruptive()) {
|
||||||
// here
|
if (a->m_name != "capture" \
|
||||||
if (a->m_name != "capture" && a->m_name != "setvar") {
|
&& a->m_name != "setvar") {
|
||||||
#ifndef NO_LOGS
|
#ifndef NO_LOGS
|
||||||
trasn->debug(4, "Running [II] (_non_ disruptive) " \
|
trasn->debug(4, "Running [II] " \
|
||||||
|
"(_non_ disruptive) " \
|
||||||
"action: " + a->m_name);
|
"action: " + a->m_name);
|
||||||
#endif
|
#endif
|
||||||
a->evaluate(this, trasn, ruleMessage);
|
a->evaluate(this, trasn, ruleMessage);
|
||||||
|
@ -415,7 +415,7 @@ int Transaction::processURI(const char *uri, const char *method,
|
|||||||
m_collections.store("REQUEST_PROTOCOL",
|
m_collections.store("REQUEST_PROTOCOL",
|
||||||
"HTTP/" + std::string(http_version));
|
"HTTP/" + std::string(http_version));
|
||||||
|
|
||||||
std::string parsedURI = uri;
|
std::string parsedURI = m_uri_decoded;
|
||||||
// The more popular case is without domain
|
// The more popular case is without domain
|
||||||
if (!m_uri_decoded.empty() && m_uri_decoded.at(0) != '/') {
|
if (!m_uri_decoded.empty() && m_uri_decoded.at(0) != '/') {
|
||||||
bool fullDomain = true;
|
bool fullDomain = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user