aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Thumbs/Text.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-17 13:28:23 +0000
committerMario <mario@mariovavti.com>2023-05-17 13:28:23 +0000
commit65d98af24c3c7b784f7e2c95998df65901011ce3 (patch)
treed7d6a60698d7a0c3704ea55cb71c543285186b17 /Zotlabs/Thumbs/Text.php
parenta57739c462a7991bf2130e8eca0c383eb276f0cd (diff)
parent62d35627f35537d0056482047e74a27ad837c3cf (diff)
downloadvolse-hubzilla-65d98af24c3c7b784f7e2c95998df65901011ce3.tar.gz
volse-hubzilla-65d98af24c3c7b784f7e2c95998df65901011ce3.tar.bz2
volse-hubzilla-65d98af24c3c7b784f7e2c95998df65901011ce3.zip
Merge branch '8.4RC'8.4
Diffstat (limited to 'Zotlabs/Thumbs/Text.php')
-rw-r--r--Zotlabs/Thumbs/Text.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Thumbs/Text.php b/Zotlabs/Thumbs/Text.php
index 31e27d014..b2f13c578 100644
--- a/Zotlabs/Thumbs/Text.php
+++ b/Zotlabs/Thumbs/Text.php
@@ -11,11 +11,12 @@ class Text {
function Thumb($attach,$preview_style,$height = 300, $width = 300) {
- if (empty($attach['content'])) {
+ $file = dbunescbin($attach['content']);
+ if (!$file) {
return;
}
- $stream = @fopen(dbunescbin($attach['content']),'rb');
+ $stream = @fopen($file,'rb');
if($stream) {
$content = trim(stream_get_contents($stream,4096));
$content = str_replace("\r",'',$content);