Use html_entity_decode() for cached photo URL
This commit is contained in:
parent
75746d714a
commit
db8e46184b
@ -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);
|
||||||
|
Reference in New Issue
Block a user