aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-03-08 10:50:03 +0100
committerMario Vavti <mario@mariovavti.com>2018-03-08 10:52:49 +0100
commita0a1246efb74473269238f7b3e4d35f90c11b49e (patch)
treec5a6684bef1945aec02bf0554ae6bcdcb63c9723
parent2105cfd433d30e0277e5ae3080cec8620747759a (diff)
downloadvolse-hubzilla-a0a1246efb74473269238f7b3e4d35f90c11b49e.tar.gz
volse-hubzilla-a0a1246efb74473269238f7b3e4d35f90c11b49e.tar.bz2
volse-hubzilla-a0a1246efb74473269238f7b3e4d35f90c11b49e.zip
use dbunescbin() for cover photos
-rw-r--r--Zotlabs/Module/Cover_photo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Cover_photo.php b/Zotlabs/Module/Cover_photo.php
index 2da99b447..56e35f912 100644
--- a/Zotlabs/Module/Cover_photo.php
+++ b/Zotlabs/Module/Cover_photo.php
@@ -207,7 +207,7 @@ class Cover_photo extends \Zotlabs\Web\Controller {
}
}
- $imagedata = (($os_storage) ? @file_get_contents($imagedata) : $imagedata);
+ $imagedata = (($os_storage) ? @file_get_contents(dbunescbin($imagedata)) : dbunescbin($imagedata));
$ph = photo_factory($imagedata, $filetype);
if(! $ph->is_valid()) {