mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
Small fix on pull request #982
This commit is contained in:
parent
e38a468a26
commit
0762892368
@ -288,7 +288,7 @@ int Assay::processURI(const char *uri, const char *protocol,
|
|||||||
|
|
||||||
std::string parsedURI = uri;
|
std::string parsedURI = uri;
|
||||||
// The more popular case is without domain
|
// The more popular case is without domain
|
||||||
if (!m_uri_decoded.empty() && m_uri_decoded.at(1) != '/') {
|
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user