From ae46d76d888badb7719a1eabd89fa97cab4afbb4 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sat, 14 May 2016 12:53:09 +0300 Subject: [PATCH] Fixed: Parsing url authority when path is empty --HG-- branch : develop --- code/nel/src/gui/url_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/gui/url_parser.cpp b/code/nel/src/gui/url_parser.cpp index cf5f2bb86..043defd78 100644 --- a/code/nel/src/gui/url_parser.cpp +++ b/code/nel/src/gui/url_parser.cpp @@ -66,7 +66,7 @@ namespace NLGUI // scan for authority if (uri.substr(0, 2) == "//") { - pos = uri.find("/", 3); + pos = uri.find_first_of("/?", 2); authority = uri.substr(0, pos); if (pos != npos) uri = uri.substr(pos);