aboutsummaryrefslogtreecommitdiffstats
path: root/include/picture_comment.inc.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-06-07 18:50:25 +0000
committerrub <rub@piwigo.org>2007-06-07 18:50:25 +0000
commit3fbc92f61e1cf362982d3e9697bf5261868cbb2c (patch)
tree11f9f0500c15456b16fa1b0aeca82994a4c05b5e /include/picture_comment.inc.php
parent182fb00f8f7873d220ab8502a31357f9245fbf8f (diff)
Resolved issue 0000702: Code Injection with picture comment
git-svn-id: http://piwigo.org/svn/trunk@2030 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/picture_comment.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/picture_comment.inc.php b/include/picture_comment.inc.php
index cab49ffcf..6370544a7 100644
--- a/include/picture_comment.inc.php
+++ b/include/picture_comment.inc.php
@@ -136,9 +136,10 @@ SELECT id,author,date,image_id,content
$template->assign_block_vars(
'comments.comment',
array(
- 'COMMENT_AUTHOR' => empty($row['author'])
+ 'COMMENT_AUTHOR' => trigger_event('render_comment_author',
+ empty($row['author'])
? l10n('guest')
- : $row['author'],
+ : $row['author']),
'COMMENT_DATE' => format_date(
$row['date'],