diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-02-22 21:48:46 +0200 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-02-23 19:18:23 +0200 |
| commit | ae7b318e7f21d0d372d48a635ff1e2ea59c4acf6 (patch) | |
| tree | afa967ba22f54cd2dee34cd73d790f0cfd9688e6 /indra/llui/llurlregistry.cpp | |
| parent | ae6aa3fc411baad073d24f10b4534e86fe77564c (diff) | |
viewer#875 Crash at uri normalization
Note that crash happened when setting LLProgressView::setMessage
Diffstat (limited to 'indra/llui/llurlregistry.cpp')
| -rw-r--r-- | indra/llui/llurlregistry.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llui/llurlregistry.cpp b/indra/llui/llurlregistry.cpp index 3bd7321777..f1df7699e2 100644 --- a/indra/llui/llurlregistry.cpp +++ b/indra/llui/llurlregistry.cpp @@ -221,8 +221,10 @@ bool LLUrlRegistry::findUrl(const std::string &text, LLUrlMatch &match, const LL if (match_entry == mUrlEntryTrusted) { LLUriParser up(url); - up.normalize(); - url = up.normalizedUri(); + if (up.normalize() == 0) + { + url = up.normalizedUri(); + } } match.setValues(match_start, match_end, |
