Skip to content

Commit

Permalink
feature 1729: protect thumbnail title against HTML special chars
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@11998 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Aug 26, 2011
1 parent 12ec1dc commit 540c1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/functions.inc.php
Expand Up @@ -818,7 +818,7 @@ function get_thumbnail_title($info)
$title.= ' '.substr($info['comment'], 0, 100).'...';
}

$title = strip_tags($title);
$title = htmlspecialchars(strip_tags($title));

$title = trigger_event('get_thumbnail_title', $title, $info);

Expand Down

0 comments on commit 540c1d5

Please sign in to comment.