Merge pull request #92 from metaverse-crossroads/FIRE-34020
[FIRE-34020] [OPENSIM] Copy of address bar contents does not URL encode space in region name for OpenSim onlymeow-7.2.2
commit
58facbba56
|
|
@ -86,6 +86,10 @@ void LLURLLineEditor::copyEscapedURLToClipboard()
|
|||
// *HACK: Because LLSLURL is currently broken we cannot use it to check if unescaped_text is a valid SLURL (see EXT-8335).
|
||||
if (LLStringUtil::startsWith(unescaped_text, "http://") || LLStringUtil::startsWith(unescaped_text, "secondlife://")) // SLURL
|
||||
text_to_copy = utf8str_to_wstring(LLWeb::escapeURL(unescaped_text));
|
||||
// <FS:HT> [FIRE-34020] Copy of address bar contents does not URL encode space in region name for OpenSim only
|
||||
else if (LLStringUtil::startsWith(unescaped_text, "hop://"))
|
||||
text_to_copy = utf8str_to_wstring(LLWeb::escapeURL(unescaped_text));
|
||||
// </FS:HT>
|
||||
else // human-readable location
|
||||
text_to_copy = utf8str_to_wstring(unescaped_text);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue