소스 검색

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;