diff --git a/app/scripts/storage/storage-webdav.js b/app/scripts/storage/storage-webdav.js index c3e8f7b4..163109d9 100644 --- a/app/scripts/storage/storage-webdav.js +++ b/app/scripts/storage/storage-webdav.js @@ -178,15 +178,10 @@ const StorageWebDav = StorageBase.extend({ return cb({ revConflict: true }, xhr, stat); } let movePath = path; - if (movePath.indexOf('://') < 0) { - if (movePath.indexOf('/') === 0) { - movePath = - location.protocol + '//' + location.host + movePath; - } else { - movePath = location.href - .replace(/\?(.*)/, '') - .replace(/[^/]*$/, movePath); - } + if (movePath.includes('://')) { + movePath = movePath.replace(/^\w+:\/\/[^\/]+/, ''); + } else if (!movePath.startsWith('/')) { + movePath = location.pathname.replace(/[^/]*$/, movePath); } that._request( _.defaults( diff --git a/release-notes.md b/release-notes.md index 2ec5ff5a..2848685b 100644 --- a/release-notes.md +++ b/release-notes.md @@ -2,6 +2,7 @@ Release notes ------------- ##### v1.10 (TBD) `+` config option to disable xml export (canExportXml) +`-` fix #1154: relative Destination header in WebDAV MOVE ##### v1.9.3 (2019-08-25) `-` fixed group settings not being displayed