diff options
author | Max Kostikov <max@kostikov.co> | 2018-12-17 00:58:46 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-12-17 00:58:46 +0100 |
commit | 1b0a6fe9ebe8e5ae8a142745a53e228df2c6bbcf (patch) | |
tree | ef1f41fe2874eab392fe5d7098b2718cf0d611f2 | |
parent | 363ad01bce15313c0536cd5f0e437db0a133ee06 (diff) | |
download | volse-hubzilla-1b0a6fe9ebe8e5ae8a142745a53e228df2c6bbcf.tar.gz volse-hubzilla-1b0a6fe9ebe8e5ae8a142745a53e228df2c6bbcf.tar.bz2 volse-hubzilla-1b0a6fe9ebe8e5ae8a142745a53e228df2c6bbcf.zip |
SSLify cached URL on redirect if needed
-rw-r--r-- | Zotlabs/Module/Photo.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php index 7365a5f64..967a3b703 100644 --- a/Zotlabs/Module/Photo.php +++ b/Zotlabs/Module/Photo.php @@ -165,7 +165,9 @@ class Photo extends \Zotlabs\Web\Controller { if($cache_mode['on']) call_hooks('cache_url_hook', $cache); if(! $cache['status']) { - header("Location: " . htmlspecialchars_decode($r[0]['display_path'])); + $url = htmlspecialchars_decode($r[0]['display_path']); + call_hooks('cache_sslify_hook', $url); + header("Location: " . $url); killme(); } } |