mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-16 08:27:10 +03:00
Replace usage of range-checked 'at' method when vector/string has already been size checked
This commit is contained in:
@@ -43,7 +43,7 @@ bool XmlNS::init(std::string *error) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (m_href.at(0) == '\'' && m_href.size() > 3) {
|
||||
if (m_href[0] == '\'' && m_href.size() > 3) {
|
||||
m_href.erase(0, 1);
|
||||
m_href.pop_back();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user