Gallery: Fix opening folders with a ' in the name
This commit is contained in:
parent
f4b937c6fe
commit
2e6e154475
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue