From 83865d408bc2bbccc05acb7107b175aec8811276 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Tue, 6 Sep 2016 23:40:49 +0200 Subject: [PATCH] FIRE-20054: Only update link's HREF to label text if the user can edit the text --- indra/llui/lltexteditor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp index 566cae0e7b..8f9a2be345 100644 --- a/indra/llui/lltexteditor.cpp +++ b/indra/llui/lltexteditor.cpp @@ -2633,7 +2633,10 @@ void LLTextEditor::updateLinkSegments() // if the link's label (what the user can edit) is a valid Url, // then update the link's HREF to be the same as the label text. // This lets users edit Urls in-place. - if (LLUrlRegistry::instance().hasUrl(url_label)) + // FIRE-20054: Only update link's HREF to label text if the user can edit the text + //if (LLUrlRegistry::instance().hasUrl(url_label)) + if (LLUrlRegistry::instance().hasUrl(url_label) && !getReadOnly()) + // { std::string new_url = wstring_to_utf8str(url_label); LLStringUtil::trim(new_url);