diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-10-21 12:59:20 +0300 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-10-21 12:59:20 +0300 |
commit | 966e9efd569b70c13755d8fe163c9a929a9394cb (patch) | |
tree | 06a46700a4701a5ed500d4775ae324d9c2ae8c3f /indra/llui | |
parent | 35626b1511e90a271f757d3373a7d64ef66c2eb7 (diff) |
MAINT-5759 FIXED URL links in the UI with non-English characters, diacritics, don't get parsed correctly.
Diffstat (limited to 'indra/llui')
-rwxr-xr-x | indra/llui/llurlregistry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/llurlregistry.cpp b/indra/llui/llurlregistry.cpp index 4f389a0c12..23c6d5a954 100755 --- a/indra/llui/llurlregistry.cpp +++ b/indra/llui/llurlregistry.cpp @@ -215,7 +215,6 @@ bool LLUrlRegistry::findUrl(const std::string &text, LLUrlMatch &match, const LL // did we find a match? if so, return its details in the match object if (match_entry) { - // Skip if link is an email with an empty username (starting with @). See MAINT-5371. if (match_start > 0 && text.substr(match_start - 1, 1) == "@") return false; @@ -224,7 +223,8 @@ bool LLUrlRegistry::findUrl(const std::string &text, LLUrlMatch &match, const LL std::string url = text.substr(match_start, match_end - match_start + 1); LLUrlEntryBase *stripped_entry = NULL; - if(match_entry != mUrlEntryNoLink && LLStringUtil::containsNonprintable(url)) + if((match_entry != mUrlEntryNoLink) && (match_entry != mUrlEntryHTTPLabel) && (match_entry !=mUrlEntrySLLabel) + && LLStringUtil::containsNonprintable(url)) { LLStringUtil::stripNonprintable(url); |