Use html_entity_decode() for cached photo URL

This commit is contained in:
Max Kostikov 2019-06-19 13:20:32 +02:00
parent 75746d714a
commit db8e46184b

View File

@ -169,7 +169,7 @@ class Photo extends \Zotlabs\Web\Controller {
); );
call_hooks('cache_url_hook', $cache); call_hooks('cache_url_hook', $cache);
if(! $cache['status']) { if(! $cache['status']) {
$url = htmlspecialchars_decode($r[0]['display_path']); $url = html_entity_decode($r[0]['display_path'], ENT_QUOTES);
// SSLify if needed // SSLify if needed
if(strpos(z_root(),'https:') !== false && strpos($url,'https:') === false) if(strpos(z_root(),'https:') !== false && strpos($url,'https:') === false)
$url = z_root() . '/sslify/' . $filename . '?f=&url=' . urlencode($url); $url = z_root() . '/sslify/' . $filename . '?f=&url=' . urlencode($url);