summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-15 19:55:26 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-15 19:55:26 +0200
commit3b9fac8f81b76af988ea620a207e6c65fa665589 (patch)
tree1e2a7f93f7f40fb56ec948a254c2675dfd9cf086 /apps
parentddfb9de14747b363bfcb70df00cea34b47abc0a3 (diff)
downloadnextcloud-server-3b9fac8f81b76af988ea620a207e6c65fa665589.tar.gz
nextcloud-server-3b9fac8f81b76af988ea620a207e6c65fa665589.zip
Fix gallery image view
Diffstat (limited to 'apps')
-rw-r--r--apps/gallery/lib/tiles.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/gallery/lib/tiles.php b/apps/gallery/lib/tiles.php
index 3903d2dde73..54fb613a8b4 100644
--- a/apps/gallery/lib/tiles.php
+++ b/apps/gallery/lib/tiles.php
@@ -93,9 +93,7 @@ class TileSingle extends TileBase {
}
public function get($extra = '') {
- // !HACK! file path needs to be encoded twice because files app decode twice url, so any special chars like + or & in filename
- // !HACK! will result in failing of opening them
- return '<a rel="images" title="'.htmlentities(basename($this->getPath())).'" href="'.\OCP\Util::linkTo('gallery','ajax/viewImage.php').'?img='.urlencode(urlencode($this->getPath())).'"><img rel="images" src="'.\OCP\Util::linkTo('gallery', 'ajax/thumbnail.php').'?filepath='.urlencode($this->getPath()).'" '.$extra.'></a>';
+ return '<a rel="images" title="'.htmlentities(basename($this->getPath())).'" href="'.\OCP\Util::linkTo('gallery','ajax/viewImage.php').'?img='.urlencode($this->getPath()).'"><img rel="images" src="'.\OCP\Util::linkTo('gallery', 'ajax/thumbnail.php').'?filepath='.urlencode($this->getPath()).'" '.$extra.'></a>';
}
public function getMiniatureSrc() {