From 92dbabbafb25b24bc8c621d4fc516eadb53ff5c9 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 18 Nov 2021 17:34:00 +0100 Subject: ucb: webdav-curl: don't assert on valid URL If you put an URL into the host field of the remote files dialog, it will gladly create silly urls that start with "https://https://" - these are syntactically valid because ":" may occur without port number path segment may be empty, so don't assert. Change-Id: I29b6317daeb76d8f2fd4a22c0908ad2366c36297 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125484 Tested-by: Jenkins Reviewed-by: Michael Stahl --- ucb/source/ucp/webdav-curl/CurlSession.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ucb') diff --git a/ucb/source/ucp/webdav-curl/CurlSession.cxx b/ucb/source/ucp/webdav-curl/CurlSession.cxx index 16cd1c0a6081..e1cfd2c3f79f 100644 --- a/ucb/source/ucp/webdav-curl/CurlSession.cxx +++ b/ucb/source/ucp/webdav-curl/CurlSession.cxx @@ -782,7 +782,7 @@ auto CurlProcessor::URIReferenceToURI(CurlSession& rSession, OUString const& rUR } else { - assert(rURIReference.startsWith("/") && !rURIReference.startsWith("//")); + assert(rURIReference.startsWith("/")); return rSession.m_URI.CloneWithRelativeRefPathAbsolute(rURIReference); } } -- cgit