mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Updated with suggestions from @zimmerle for code style
This commit is contained in:
parent
b3ab9a4084
commit
e38a468a26
@ -288,7 +288,7 @@ int Assay::processURI(const char *uri, const char *protocol,
|
||||
|
||||
std::string parsedURI = uri;
|
||||
// The more popular case is without domain
|
||||
if (m_uri_decoded.at(1) != '/'){
|
||||
if (!m_uri_decoded.empty() && m_uri_decoded.at(1) != '/') {
|
||||
bool fullDomain = true;
|
||||
size_t scheme = m_uri_decoded.find(":")+1;
|
||||
if (scheme==std::string::npos) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user