diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2016-08-10 13:31:25 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2016-08-10 13:31:25 +0300 |
commit | e76b5643effc0a38c28a561ce403c97033419398 (patch) | |
tree | 7b93264533ab4028aabdfa8a3a4c103285e87ec9 /indra/llui/llurlentry.cpp | |
parent | 5924155f29d9c971dcec4fd21e77466a455ef98d (diff) |
MAINT-6608 FIXED URI parser problem with links with username, password
Diffstat (limited to 'indra/llui/llurlentry.cpp')
-rw-r--r-- | indra/llui/llurlentry.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/indra/llui/llurlentry.cpp b/indra/llui/llurlentry.cpp index e4848362a7..797fae81c4 100644 --- a/indra/llui/llurlentry.cpp +++ b/indra/llui/llurlentry.cpp @@ -205,9 +205,15 @@ std::string LLUrlEntryBase::urlToGreyQuery(const std::string &url) const std::string label; up.extractParts(); - up.glueFirst(label); - std::string query = url.substr(label.size()); - return query; + up.glueFirst(label, false); + + size_t pos = url.find(label); + if (pos == std::string::npos) + { + return ""; + } + pos += label.size(); + return url.substr(pos); } |