Преглед изворни кода

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;