diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-04-10 15:53:27 +0400 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-04-10 15:53:27 +0400 |
commit | 0c56f82db5f00601841341909028a0cc36ca2bf1 (patch) | |
tree | 72f48f25f97e1f9e1635081397be841c8a07ce62 /files | |
parent | 6cf3f10d3546eda09ceb823af5c2cf1190f18743 (diff) |
fix: drag'n'drop actions with files containing special chars, fixes oc-420
Diffstat (limited to 'files')
-rw-r--r-- | files/js/files.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/js/files.js b/files/js/files.js index df9f45a7af4..1c0a40c2368 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -417,7 +417,7 @@ var folderDropOptions={ var dir=$('#dir').val(); $.ajax({ url: 'ajax/move.php', - data: "dir="+dir+"&file="+file+'&target='+dir+'/'+target, + data: "dir="+encodeURIComponent(dir)+"&file="+encodeURIComponent(file)+'&target='+encodeURIComponent(dir)+'/'+encodeURIComponent(target), complete: function(data){boolOperationFinished(data, function(){ var el = $('#fileList tr').filterAttr('data-file',file).find('td.filename'); el.draggable('destroy'); @@ -443,7 +443,7 @@ var crumbDropOptions={ } $.ajax({ url: 'ajax/move.php', - data: "dir="+dir+"&file="+file+'&target='+target, + data: "dir="+encodeURIComponent(dir)+"&file="+encodeURIComponent(file)+'&target='+encodeURIComponent(target), complete: function(data){boolOperationFinished(data, function(){ FileList.remove(file); });} |