SL-13843 FIXED URL gets changed when opened in the internal web browse

meow-7.2.2
Mnikolenko Productengine 2020-08-25 15:18:40 +03:00
parent fc74a2df63
commit 7897f909c4
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ std::string LLURI::escapePathAndData(const std::string &str)
std::string fragment;
size_t fragment_pos = str.find('#');
if (fragment_pos != std::string::npos)
if ((fragment_pos != std::string::npos) && (fragment_pos > delim_pos))
{
query = str.substr(path_size, fragment_pos - path_size);
fragment = str.substr(fragment_pos);