diff --git a/lib/preview/txt.php b/lib/preview/txt.php index 2b5d8edb8930f0284dd2d110deeb17d9b956acc6..1e88aec69fdc0a81d02e4f17f07d72827c6102ef 100644 --- a/lib/preview/txt.php +++ b/lib/preview/txt.php @@ -39,7 +39,7 @@ class OC_Preview_TXT extends OC_Preview_Provider{ } $image = new \OC_Image($image); - + if (!$image->valid()) return false; return $image;