mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
file name escape uri
fix https://github.com/seaweedfs/seaweedfs/issues/3969
This commit is contained in:
parent
2009719b89
commit
aae82dca6f
|
@ -319,7 +319,7 @@
|
||||||
if (!baseUrl.endsWith('/')) {
|
if (!baseUrl.endsWith('/')) {
|
||||||
baseUrl += '/';
|
baseUrl += '/';
|
||||||
}
|
}
|
||||||
var url = baseUrl + dirName;
|
var url = baseUrl + encodeURIComponent(dirName);
|
||||||
if (!url.endsWith('/')) {
|
if (!url.endsWith('/')) {
|
||||||
url += '/';
|
url += '/';
|
||||||
}
|
}
|
||||||
|
@ -335,7 +335,7 @@
|
||||||
if (newName == null || newName == '') {
|
if (newName == null || newName == '') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var url = basePath + newName;
|
var url = basePath + encodeURIComponent(newName);
|
||||||
var originPath = basePath + originName;
|
var originPath = basePath + originName;
|
||||||
url += '?mv.from=' + originPath;
|
url += '?mv.from=' + originPath;
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
Loading…
Reference in a new issue