aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-12-17 00:58:46 +0100
committerMax Kostikov <max@kostikov.co>2018-12-17 00:58:46 +0100
commit1b0a6fe9ebe8e5ae8a142745a53e228df2c6bbcf (patch)
treeef1f41fe2874eab392fe5d7098b2718cf0d611f2
parent363ad01bce15313c0536cd5f0e437db0a133ee06 (diff)
downloadvolse-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.php4
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();
}
}