[filer] Fix uri escape during renaming (#4039)

This commit is contained in:
Jiffs Maverick 2022-12-07 17:47:40 +02:00 committed by GitHub
parent 659f28b855
commit 5f59d43c88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -337,7 +337,7 @@
}
var url = basePath + encodeURIComponent(newName);
var originPath = basePath + originName;
url += '?mv.from=' + originPath;
url += '?mv.from=' + encodeURIComponent(originPath);
var xhr = new XMLHttpRequest();
xhr.open('POST', url, false);
xhr.setRequestHeader('Content-Type', '');