diff options
Diffstat (limited to 'mod/photos.php')
-rw-r--r-- | mod/photos.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php index c43beb8d4..86e027bab 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -618,6 +618,11 @@ function photos_content(&$a) { if($datatype === 'album') { + if((strlen($datum) & 1) || (! ctype_xdigit($datum))) { + notice( t('Album name could not be decoded') . EOL); + $datum = ''; + } + $album = hex2bin($datum); $r = q("SELECT `resource_id`, max(`scale`) AS `scale` FROM `photo` WHERE `uid` = %d AND `album` = '%s' |