mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Allow empty strings to be evaluated by regex::searchAll
This commit is contained in:
committed by
Felipe Zimmerle
parent
7def498c4c
commit
fd8e72fd97
@@ -91,16 +91,16 @@ std::list<SMatch> Regex::searchAll(const std::string& s) {
|
||||
rc = 0;
|
||||
break;
|
||||
}
|
||||
if (len == 0) {
|
||||
rc = 0;
|
||||
break;
|
||||
}
|
||||
match.match = std::string(tmpString, start, len);
|
||||
match.m_offset = start;
|
||||
match.m_length = len;
|
||||
offset = start + len;
|
||||
|
||||
retList.push_front(match);
|
||||
|
||||
if (len == 0) {
|
||||
rc = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} while (rc > 0);
|
||||
|
||||
|
Reference in New Issue
Block a user