diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-08-30 11:33:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-30 11:33:48 +0200 |
commit | 83490e90ef70d4da60982d86fc84725c373fe5f4 (patch) | |
tree | c1901f70765d0bebe8a2e0100da62fb9457bd95a /lib | |
parent | 989473169eb508fe328df65564b0ec37f9a15f29 (diff) | |
parent | f41c8c00894ebd687e60731e673140c8f5bda320 (diff) | |
download | nextcloud-server-83490e90ef70d4da60982d86fc84725c373fe5f4.tar.gz nextcloud-server-83490e90ef70d4da60982d86fc84725c373fe5f4.zip |
Merge pull request #1089 from nextcloud/allow-to-prevent-previews
Check if the file isReadable() before sending a (cached) preview
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Preview.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview.php b/lib/private/Preview.php index 70b000a30ee..67838a8d4a3 100644 --- a/lib/private/Preview.php +++ b/lib/private/Preview.php @@ -763,7 +763,7 @@ class Preview { $this->preview = null; $fileInfo = $this->getFileInfo(); - if ($fileInfo === null || $fileInfo === false) { + if ($fileInfo === null || $fileInfo === false || !$fileInfo->isReadable()) { return new \OC_Image(); } |