Browse Source

Confirm that the file names are compared using URL decoded strings

dom111 6 năm trước cách đây
mục cha
commit
dd085abc53
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;