fix embedimage if an albumname contains quotes

This commit is contained in:
Mario Vavti
2017-01-11 10:59:46 +01:00
parent 9ad44a2060
commit 2fc47cc52b
3 changed files with 7 additions and 4 deletions
+1
View File
@@ -480,6 +480,7 @@ function photos_albums_list($channel, $observer, $sort_key = 'album', $direction
foreach($albums as $k => $album) {
$entry = array(
'text' => (($album['album']) ? $album['album'] : '/'),
'jstext' => (($album['album']) ? addslashes($album['album']) : '/'),
'total' => $album['total'],
'url' => z_root() . '/photos/' . $channel['channel_address'] . '/album/' . bin2hex($album['album']),
'urlencode' => urlencode($album['album']),