Fixed: url inheriting for defined empty query component

This commit is contained in:
Nimetu 2016-05-09 20:05:06 +03:00
parent 5ba07ac8c4
commit 72e7f9410a

View file

@ -78,7 +78,7 @@ namespace NLGUI
pos = uri.find("?");
if (pos != npos)
{
query = uri.substr(pos + 1);
query = uri.substr(pos);
uri = uri.substr(0, pos);
}
@ -210,7 +210,9 @@ namespace NLGUI
result += path;
if (!query.empty())
result += "?" + query;
if (query.find_first_of("?") != 0)
result += "?";
result += query;
if (!hash.empty())
result += "#" + hash;