ucb/source/ucp/webdav-curl/CurlSession.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 92dbabbafb25b24bc8c621d4fc516eadb53ff5c9
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Thu Nov 18 17:34:00 2021 +0100
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Thu Nov 18 18:34:50 2021 +0100

    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 <michael.st...@allotropia.de>

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);
     }
 }

Reply via email to