mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 18:30:53 +00:00
Fixed: url inheriting for defined empty query component
This commit is contained in:
parent
e4a1e9df63
commit
008f67fcbc
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue