mirror of https://github.com/keeweb/keeweb
fix #1729: prevent double encoding move path
parent
e107c5c108
commit
0d291afb05
|
@ -209,6 +209,10 @@ class StorageWebDav extends StorageBase {
|
|||
.replace(/[^/]*$/, movePath);
|
||||
}
|
||||
}
|
||||
// prevent double encoding, see #1729
|
||||
const encodedMovePath = /%[A-Z0-9]{2}/.test(movePath)
|
||||
? movePath
|
||||
: encodeURI(movePath);
|
||||
this._request(
|
||||
{
|
||||
...saveOpts,
|
||||
|
@ -217,7 +221,7 @@ class StorageWebDav extends StorageBase {
|
|||
path: tmpPath,
|
||||
nostat: true,
|
||||
headers: {
|
||||
Destination: encodeURI(movePath),
|
||||
Destination: encodedMovePath,
|
||||
'Overwrite': 'T'
|
||||
}
|
||||
},
|
||||
|
|
|
@ -21,7 +21,7 @@ const Features = {
|
|||
return isDesktop && (this.isMac || this.isWindows);
|
||||
},
|
||||
renderCustomTitleBar() {
|
||||
return isDesktop && this.isWindows;
|
||||
return isDesktop && (this.isMac || this.isWindows); // revert me
|
||||
},
|
||||
hasUnicodeFlags() {
|
||||
return this.isMac;
|
||||
|
|
Loading…
Reference in New Issue