mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-06 08:52:29 +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:
1 parent
12ec1dcf5b
commit
540c1d5aa0
1 file changed
+1
-1
@@ -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