Use String.length() instead of String.size() in WebServerRequest::setup_url_stack().

This commit is contained in:
Relintai 2022-12-21 15:12:12 +01:00
parent 38a36b3c70
commit ea009ff869

View File

@ -285,14 +285,14 @@ void WebServerRequest::setup_url_stack() {
while ((pos = path.find("/")) != -1) { while ((pos = path.find("/")) != -1) {
st = path.substr(0, pos); st = path.substr(0, pos);
if (st.size() != 0) { if (st.length() != 0) {
_path_stack.push_back(st); _path_stack.push_back(st);
} }
path.erase(0, pos + 1); path.erase(0, pos + 1);
} }
if (path.size() != 0) { if (path.length() != 0) {
_path_stack.push_back(path); _path_stack.push_back(path);
} }
} }