diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-06-09 15:12:28 +0200 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-06-09 15:12:50 +0200 |
commit | 001293a702be1373c327bc8d5222df3924a7f66a (patch) | |
tree | e26d352ef9b8b7ea5a6ad0bd0108c0b608e46a09 /apps | |
parent | cfe219fbb9f2f734b063041ae420400044f90000 (diff) | |
download | nextcloud-server-001293a702be1373c327bc8d5222df3924a7f66a.tar.gz nextcloud-server-001293a702be1373c327bc8d5222df3924a7f66a.zip |
removing app access check, fix title for links in tiles
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gallery/lib/managers.php | 3 | ||||
-rw-r--r-- | apps/gallery/lib/tiles.php | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/apps/gallery/lib/managers.php b/apps/gallery/lib/managers.php index 41300058936..f9a67b8b117 100644 --- a/apps/gallery/lib/managers.php +++ b/apps/gallery/lib/managers.php @@ -4,9 +4,6 @@ namespace OC\Pictures; require_once('lib/base.php'); -\OCP\JSON::checkLoggedIn(); -\OCP\JSON::checkAppEnabled('gallery'); - class DatabaseManager { private static $instance = null; const TAG = 'DatabaseManager'; diff --git a/apps/gallery/lib/tiles.php b/apps/gallery/lib/tiles.php index f1961cb72e5..e43c99bb76a 100644 --- a/apps/gallery/lib/tiles.php +++ b/apps/gallery/lib/tiles.php @@ -95,7 +95,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="'.basename($this->getPath()).'" href="'.\OCP\Util::linkTo('files', 'download.php').'?file='.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('files', 'download.php').'?file='.urlencode(urlencode($this->getPath())).'"><img rel="images" src="'.\OCP\Util::linkTo('gallery', 'ajax/thumbnail.php').'&filepath='.urlencode($this->getPath()).'" '.$extra.'></a>'; } public function getMiniatureSrc() { |