mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-27 18:28:50 +03:00
impossible scheme
This commit is contained in:
parent
ced56c5b08
commit
df7c2aac64
@ -522,7 +522,7 @@ int Transaction::processURI(const char *uri, const char *method,
|
|||||||
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;
|
||||||
size_t scheme = m_uri_decoded.find(":")+1;
|
size_t scheme = m_uri_decoded.find(":")+1;
|
||||||
if (scheme == std::string::npos) {
|
if (scheme == std::string::npos) { //impossible case, for +1 in size_t scheme = m_uri_decoded.find(":")+1
|
||||||
fullDomain = false;
|
fullDomain = false;
|
||||||
}
|
}
|
||||||
// Searching with a pos of -1 is undefined we also shortcut
|
// Searching with a pos of -1 is undefined we also shortcut
|
||||||
|
Loading…
x
Reference in New Issue
Block a user