summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/urihelper.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svl/source/misc/urihelper.cxx b/svl/source/misc/urihelper.cxx
index 0746cb221ce3..550d162a695b 100644
--- a/svl/source/misc/urihelper.cxx
+++ b/svl/source/misc/urihelper.cxx
@@ -738,6 +738,8 @@ OUString URIHelper::resolveIdnaHost(OUString const & url) {
return url;
}
auto auth(uri->getAuthority());
+ if (auth.isEmpty())
+ return url;
sal_Int32 hostStart = auth.indexOf('@') + 1;
sal_Int32 hostEnd = auth.getLength() - 1;
while (hostEnd > hostStart && rtl::isAsciiDigit(auth[hostEnd])) {