aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-01-11 10:59:46 +0100
committerMario Vavti <mario@mariovavti.com>2017-01-11 10:59:46 +0100
commit2fc47cc52b556153a17b5712e695175f87e6c1dd (patch)
tree7afb83e60dfdd3758fbd1794956733dea0c2e1f8 /include/photos.php
parent9ad44a2060b9f294423376f1fad43fa17d1dffe4 (diff)
downloadvolse-hubzilla-2fc47cc52b556153a17b5712e695175f87e6c1dd.tar.gz
volse-hubzilla-2fc47cc52b556153a17b5712e695175f87e6c1dd.tar.bz2
volse-hubzilla-2fc47cc52b556153a17b5712e695175f87e6c1dd.zip
fix embedimage if an albumname contains quotes
Diffstat (limited to 'include/photos.php')
-rw-r--r--include/photos.php1
1 files changed, 1 insertions, 0 deletions
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']),