SSLify cached URL on redirect if needed

This commit is contained in:
Max Kostikov 2018-12-17 00:58:46 +01:00
parent 363ad01bce
commit 1b0a6fe9eb

View File

@ -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();
}
}