This commit is contained in:
Ilya Yatsishin 2022-10-14 14:27:52 +02:00
parent bbf88b66a0
commit 3361b27965

View File

@ -121,7 +121,7 @@ namespace
std::pair<String, String> getPathFromUriAndUriWithoutPath(const String & uri)
{
auto pos = uri.find("//");
if (pos != std::string::npos && pos + 2 != uri.end())
if (pos != std::string::npos && pos + 2 < uri.length())
{
pos = uri.find('/', pos + 2);
if (pos != std::string::npos)