mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
use encodeURIComponent in more places
This commit is contained in:
parent
6642d4af6f
commit
417b1efdca
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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]){
|
||||
|
|
|
|||
Loading…
Reference in a new issue