aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-04-18 10:13:03 +0200
committerMax Kostikov <max@kostikov.co>2019-04-18 10:13:03 +0200
commiteb02d01eede6739550a3ad4ef1d17d559c02528c (patch)
treecb02a2adb3b969226668361eb6df22113ba302bf /Zotlabs
parent7a9093f634b0bbe9237cd18ea9a4d6d0b1b7c70a (diff)
downloadvolse-hubzilla-eb02d01eede6739550a3ad4ef1d17d559c02528c.tar.gz
volse-hubzilla-eb02d01eede6739550a3ad4ef1d17d559c02528c.tar.bz2
volse-hubzilla-eb02d01eede6739550a3ad4ef1d17d559c02528c.zip
Update Photo.php
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Photo.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php
index 5e52bcf28..40c36e8fe 100644
--- a/Zotlabs/Module/Photo.php
+++ b/Zotlabs/Module/Photo.php
@@ -99,8 +99,10 @@ class Photo extends \Zotlabs\Web\Controller {
}
if(! $data) {
- header("Location: " . z_root() . '/' . $default);
- killme();
+ $x = z_fetch_url(z_root() . '/' . $default, true, 0, [ 'novalidate' => true ]);
+ $data = ($x['success'] ? $x['body'] : EMPTY_STR);
+ $mimetype = 'image/png';
+ $modified = filemtime($default);
}
$cachecontrol = ', must-revalidate';