summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2020-08-25 15:18:40 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2020-08-25 15:18:40 +0300
commit7897f909c4879d2f092f7310d59d78b5deebe634 (patch)
tree8fb64c1dbfcf08a385facb8cac9504cf5de6b6d8
parentfc74a2df6364889149b5ebd0638839582fda358f (diff)
SL-13843 FIXED URL gets changed when opened in the internal web browse
-rw-r--r--indra/llcommon/lluri.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llcommon/lluri.cpp b/indra/llcommon/lluri.cpp
index 9942bc0cf8..22711a83d2 100644
--- a/indra/llcommon/lluri.cpp
+++ b/indra/llcommon/lluri.cpp
@@ -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);