diff options
author | Joas Schilling <coding@schilljs.com> | 2016-08-26 15:51:18 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-08-29 10:58:57 +0200 |
commit | f41c8c00894ebd687e60731e673140c8f5bda320 (patch) | |
tree | 8289247484603e0170529eca6edb168daf3788f3 /lib/private/Preview.php | |
parent | 3647fbe7cd86e743b059889d69b03fcf8207780f (diff) | |
download | nextcloud-server-f41c8c00894ebd687e60731e673140c8f5bda320.tar.gz nextcloud-server-f41c8c00894ebd687e60731e673140c8f5bda320.zip |
Check if the file isReadable() before sending a (cached) preview
Diffstat (limited to 'lib/private/Preview.php')
-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(); } |