diff --git a/apps/gallery/lib/tiles.php b/apps/gallery/lib/tiles.php
index c2d7fede78..3805b6dd25 100644
--- a/apps/gallery/lib/tiles.php
+++ b/apps/gallery/lib/tiles.php
@@ -96,7 +96,9 @@ class TileSingle extends TileBase {
}
public function get($extra = '') {
- return '';
+ // !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 '';
}
public function getMiniatureSrc() {