diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2021-11-18 17:34:00 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-11-18 18:34:50 +0100 |
commit | 92dbabbafb25b24bc8c621d4fc516eadb53ff5c9 (patch) | |
tree | 877c46232dbc6bf385d2263f9944ba55d2a97ce6 /ucb | |
parent | 7ea765fd2f9a357ffb95c4e5e7826426614d0670 (diff) |
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.stahl@allotropia.de>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav-curl/CurlSession.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |