From 8306444494c9fd69dc3df04904fe9a2b1f56e39f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 18 Oct 2006 18:00:40 +0000 Subject: - Patch #78399 by Eaton and chx: don't allow HTML in the title. --- modules/comment/comment.module | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 95570f67f..d2f85e895 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -230,7 +230,7 @@ function comment_link($type, $node = NULL, $teaser = FALSE) { ); } else { - $links['comment_forbidden']['#title'] = theme('comment_post_forbidden', $node->nid); + $links['comment_forbidden']['title'] = theme('comment_post_forbidden', $node->nid); } } } @@ -252,7 +252,7 @@ function comment_link($type, $node = NULL, $teaser = FALSE) { } } else { - $links['comment_forbidden']['#title'] = theme('comment_post_forbidden', $node->nid); + $links['comment_forbidden']['title'] = theme('comment_post_forbidden', $node->nid); } } } @@ -261,6 +261,9 @@ function comment_link($type, $node = NULL, $teaser = FALSE) { if ($type == 'comment') { $links = comment_links($node, $teaser); } + if (isset($links['comment_forbidden'])) { + $links['comment_forbidden']['html'] = TRUE; + } return $links; } @@ -735,7 +738,7 @@ function comment_links($comment, $return = 1) { ); } else { - $links['comment_forbidden']['#title'] = theme('comment_post_forbidden', $comment->nid); + $links['comment_forbidden']['title'] = theme('comment_post_forbidden', $comment->nid); } } -- cgit v1.2.3