summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-10-19 23:03:13 +0300
committerAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-10-20 12:25:16 +0200
commit052be579b6bb19c5a321e4c2d8c9173bcf5b9c34 (patch)
tree416ca8e0aac52d8097b0de29f00616faca4320ee /indra
parentf635fe087089cd6ef420ce37d8f639209efd7e69 (diff)
SL-20422 Unit test fix
Diffstat (limited to 'indra')
-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;
}