aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-11-13 23:01:56 -0800
committerchrislu <chris.lu@gmail.com>2022-11-13 23:01:56 -0800
commitaae82dca6f18eab4ffb602c2ca195ddcde061c30 (patch)
tree4f71a4631f394697d123046afd72b1cdc613f4c9
parent2009719b89694bce6df4fdcae38be27c9a83ea9c (diff)
downloadseaweedfs-aae82dca6f18eab4ffb602c2ca195ddcde061c30.tar.xz
seaweedfs-aae82dca6f18eab4ffb602c2ca195ddcde061c30.zip
file name escape uri
fix https://github.com/seaweedfs/seaweedfs/issues/3969
-rw-r--r--weed/server/filer_ui/filer.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.html
index 2369f8e87..ef9ef75fb 100644
--- a/weed/server/filer_ui/filer.html
+++ b/weed/server/filer_ui/filer.html
@@ -319,7 +319,7 @@
if (!baseUrl.endsWith('/')) {
baseUrl += '/';
}
- var url = baseUrl + dirName;
+ var url = baseUrl + encodeURIComponent(dirName);
if (!url.endsWith('/')) {
url += '/';
}
@@ -335,7 +335,7 @@
if (newName == null || newName == '') {
return;
}
- var url = basePath + newName;
+ var url = basePath + encodeURIComponent(newName);
var originPath = basePath + originName;
url += '?mv.from=' + originPath;
var xhr = new XMLHttpRequest();