BUG-10491: Don't screw the NoLink SLURL match!

Ansariel 2015-10-16 11:26:02 +02:00
parent c36b189a5a
commit 51bbec1f78
1 changed files with 4 additions and 1 deletions

View File

@ -285,7 +285,10 @@ 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(LLStringUtil::containsNonprintable(url))
// <FS:Ansariel> BUG-10491: Don't screw the NoLink SLURL match!
//if(LLStringUtil::containsNonprintable(url))
if (match_entry != mUrlEntryNoLink && LLStringUtil::containsNonprintable(url))
// </FS:Ansariel>
{
LLStringUtil::stripNonprintable(url);