Gallery: Fix opening folders with a ' in the name

This commit is contained in:
Bart Visscher 2012-06-22 22:46:09 +02:00
parent f4b937c6fe
commit 2e6e154475
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ function deplode(element) {
}
function openNewGal(album_name) {
root = root + album_name + "/";
root = root + decodeURIComponent(album_name) + "/";
var url = window.location.toString().replace(window.location.search, '');
url = url + "?app=gallery&root="+encodeURIComponent(root);

View File

@ -168,7 +168,7 @@ class TileStack extends TileBase {
}
public function getOnClickAction() {
return 'javascript:openNewGal(\''.\OCP\Util::sanitizeHTML($this->stack_name).'\');';
return 'javascript:openNewGal(\''.rawurlencode($this->stack_name).'\');';
}
private $tiles_array;