瀏覽代碼

Confirm that the file names are compared using URL decoded strings

dom111 6 年之前
父節點
當前提交
dd085abc53
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/webdav.js

+ 1 - 1
src/webdav.js

@@ -160,7 +160,7 @@
             var foundFile = false;
 
             $.each(_files, function() {
-                if (this.name == file.name) {
+                if (decodeURIComponent(this.name) == decodeURIComponent(file.name)) {
                     foundFile = this;
 
                     return false;