summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-10-06 14:25:27 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-10-06 14:25:27 +0200
commita6293a38f20ef9393b7ec01dbdb8c34191b32011 (patch)
treec2d9a94ac2b78d9f5601c8b65bd9d0040466b983 /lib
parente5b4e54141007e50cd927e0667c81cee47873265 (diff)
parent83c2829ca840d980708150d92049f35eb5e54560 (diff)
downloadnextcloud-server-a6293a38f20ef9393b7ec01dbdb8c34191b32011.tar.gz
nextcloud-server-a6293a38f20ef9393b7ec01dbdb8c34191b32011.zip
Merge pull request #11390 from Nemesiz/master
Preview large TXT files fix
Diffstat (limited to 'lib')
-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) === '') {