From 2fc47cc52b556153a17b5712e695175f87e6c1dd Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 11 Jan 2017 10:59:46 +0100 Subject: fix embedimage if an albumname contains quotes --- include/photos.php | 1 + 1 file changed, 1 insertion(+) (limited to 'include/photos.php') diff --git a/include/photos.php b/include/photos.php index 5e4d755e3..8496c2c86 100644 --- a/include/photos.php +++ b/include/photos.php @@ -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']), -- cgit v1.2.3