diff options
author | Robin Appelman <icewind1991@gmail.com> | 2010-08-03 17:35:59 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2010-08-03 17:35:59 +0200 |
commit | 417b1efdca3aeee75bfd27a818328f28d705adfc (patch) | |
tree | 2026fc16aa53cba54fcee98cee63125611b7cec1 /js | |
parent | 6642d4af6ff44c92e91e347c8ea392efac28f842 (diff) | |
download | nextcloud-server-417b1efdca3aeee75bfd27a818328f28d705adfc.tar.gz nextcloud-server-417b1efdca3aeee75bfd27a818328f28d705adfc.zip |
use encodeURIComponent in more places
Diffstat (limited to 'js')
-rw-r--r-- | js/filebrowser.js | 2 | ||||
-rw-r--r-- | js/lib_files.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/js/filebrowser.js b/js/filebrowser.js index aae6cdf7720..1ad37ebcf3f 100644 --- a/js/filebrowser.js +++ b/js/filebrowser.js @@ -555,7 +555,7 @@ sizeFormat=function(size){ } OC_FILES.browser.showImage=function(dir,file){ - var path=WEBROOT+'/files/open_file.php?dir='+dir+'&file='+file + var path=WEBROOT+'/files/open_file.php?dir='+encodeURIComponent(dir)+'&file='+encodeURIComponent(file); var div=document.createElement('div'); div.setAttribute('id','imageframe'); div.addEvent('onclick',OC_FILES.browser.hideImage) diff --git a/js/lib_files.js b/js/lib_files.js index 68c3c611291..0f601cff65d 100644 --- a/js/lib_files.js +++ b/js/lib_files.js @@ -75,7 +75,7 @@ OC_FILES.getdirectorycontent=function(dir,callback,refresh){ OC_FILES.getdirectorycontent_callback=callback; } OC_FILES.xmlloader.setCallBack(OC_FILES.getdirectorycontent_parse); - OC_FILES.xmlloader.load('files/get_files.php?dir='+dir); + OC_FILES.xmlloader.load('files/get_files.php?dir='+encodeURIComponent(dir)); }else{ var files=OC_FILES.cache.files if(OC_FILES.cache.incomplete[OC_FILES.dir]){ |