From ac93966a8420de08e1d37eecbe986f48e5d20b76 Mon Sep 17 00:00:00 2001 From: humbletim Date: Thu, 20 Mar 2025 18:04:32 -0400 Subject: [PATCH] FIRE-34020 - Copy of address bar contents does not URL encode space in region name for OpenSim only Escape clipboard URLs starting with hop:// too --- indra/newview/llurllineeditorctrl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indra/newview/llurllineeditorctrl.cpp b/indra/newview/llurllineeditorctrl.cpp index de0ed645eb..a4d9945783 100644 --- a/indra/newview/llurllineeditorctrl.cpp +++ b/indra/newview/llurllineeditorctrl.cpp @@ -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)); + // [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)); + // else // human-readable location text_to_copy = utf8str_to_wstring(unescaped_text);