mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-27 18:28:50 +03:00
backup
This commit is contained in:
parent
df7c2aac64
commit
ff65271554
@ -528,8 +528,8 @@ int Transaction::processURI(const char *uri, const char *method,
|
||||
// Searching with a pos of -1 is undefined we also shortcut
|
||||
if (scheme != std::string::npos && fullDomain == true) {
|
||||
// Assuming we found a colon make sure its followed
|
||||
size_t netloc = m_uri_decoded.find("//", scheme) + 2;
|
||||
if (netloc == std::string::npos || (netloc != scheme + 2)) {
|
||||
size_t netloc = m_uri_decoded.find("//", scheme) + 2;//
|
||||
if (netloc == std::string::npos || (netloc != scheme + 2)) { //(netloc == std::string::npos) will be false forever, for +2 in size_t netloc = m_uri_decoded.find("//", scheme) + 2
|
||||
fullDomain = false;
|
||||
}
|
||||
if (netloc != std::string::npos && fullDomain == true) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user