aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-03-08 10:50:03 +0100
committerMario <mario@mariovavti.com>2018-03-08 10:50:03 +0100
commit8705882e6eb51f901e59a2b03ecfc8dc1588baa1 (patch)
tree81ea93c9481f1ea7392e3a7de5fc9f5baf43f450 /Zotlabs
parent16f9e7bd403c5122c15f864685a0f0c58d5219c2 (diff)
downloadvolse-hubzilla-8705882e6eb51f901e59a2b03ecfc8dc1588baa1.tar.gz
volse-hubzilla-8705882e6eb51f901e59a2b03ecfc8dc1588baa1.tar.bz2
volse-hubzilla-8705882e6eb51f901e59a2b03ecfc8dc1588baa1.zip
use dbunescbin() for cover photos
Diffstat (limited to 'Zotlabs')
-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()) {