mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 20:06:19 +08:00
[filer] Fix uri escape during renaming (#4039)
This commit is contained in:
@@ -337,7 +337,7 @@
|
|||||||
}
|
}
|
||||||
var url = basePath + encodeURIComponent(newName);
|
var url = basePath + encodeURIComponent(newName);
|
||||||
var originPath = basePath + originName;
|
var originPath = basePath + originName;
|
||||||
url += '?mv.from=' + originPath;
|
url += '?mv.from=' + encodeURIComponent(originPath);
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open('POST', url, false);
|
xhr.open('POST', url, false);
|
||||||
xhr.setRequestHeader('Content-Type', '');
|
xhr.setRequestHeader('Content-Type', '');
|
||||||
|
Reference in New Issue
Block a user