mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
less
This commit is contained in:
parent
bbf88b66a0
commit
3361b27965
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user