summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-10-19 23:03:13 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-10-20 01:09:01 +0300
commit735da0eb1d4bd24a1915a6cb2a9c2290a8e52bbe (patch)
treede19f734e00c915e95337d596a95de6d027b243a
parentb7ad7ccaaa4f4ea5947e844ce87c13a8899f0aa1 (diff)
SL-20422 Unit test fix
-rw-r--r--indra/newview/llslurl.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/indra/newview/llslurl.cpp b/indra/newview/llslurl.cpp
index 262ea3ca1f..e43fb993ce 100644
--- a/indra/newview/llslurl.cpp
+++ b/indra/newview/llslurl.cpp
@@ -112,12 +112,11 @@ LLSLURL::LLSLURL(const std::string& slurl)
// and the slurl type (APP or LOCATION)
if (slurl_uri.scheme() == LLSLURL::SLURL_SECONDLIFE_SCHEME)
{
- if (path_array.size() == 0)
+ if (path_array.size() == 0
+ && slurl_uri.authority().empty()
+ && slurl_uri.escapedQuery().empty())
{
- if (slurl_uri.authority().empty() && slurl_uri.escapedQuery().empty())
- {
- mType = EMPTY;
- }
+ mType = EMPTY;
// um, we need a path...
return;
}