mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
feature 1729: protect thumbnail title against HTML special chars
git-svn-id: http://piwigo.org/svn/trunk@11998 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user