Preview large TXT files fix
Limit the size of the string generating the preview image for TXT files
This commit is contained in:
parent
537f046e66
commit
83c2829ca8
1 changed files with 1 additions and 1 deletions
|
@ -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) === '') {
|
||||
|
|
Loading…
Reference in a new issue