summaryrefslogtreecommitdiffstats
path: root/lib/private/preview
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/preview')
-rw-r--r--lib/private/preview/txt.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview/txt.php b/lib/private/preview/txt.php
index 2ac77faf48b..7f01b980c0e 100644
--- a/lib/private/preview/txt.php
+++ b/lib/private/preview/txt.php
@@ -34,7 +34,7 @@ class TXT extends Provider {
public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) {
$content = $fileview->fopen($path, 'r');
- $content = stream_get_contents($content);
+ $content = stream_get_contents($content,3000);
//don't create previews of empty text files
if(trim($content) === '') {