mirror of https://github.com/keeweb/keeweb.git
fix #1154: relative Destination header in WebDAV MOVE
This commit is contained in:
parent
80c44c4c03
commit
cbbf5f833a
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue