Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30484
Modified Files:
serendipity_functions.inc.php
Log Message:
fix stripping markup from comments (introduced with the comment-url
redirection few days ago)
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.264
retrieving revision 1.265
diff -u -d -r1.264 -r1.265
--- serendipity_functions.inc.php 11 May 2004 12:08:03 -0000 1.264
+++ serendipity_functions.inc.php 13 May 2004 07:27:46 -0000 1.265
@@ -1207,11 +1207,11 @@
foreach ($comments as $comment) {
$x++;
- $comment['comment'] = $comment['body'];
+ $comment['comment'] = htmlspecialchars(strip_tags($comment['body']));
if (!empty($comment['url']) && substr($comment['url'], 0, 7) != 'http://') {
$comment['url'] = 'http://' . $comment['url'];
}
-
+
serendipity_plugin_api::hook_event('frontend_display', $comment);
/* Protect submitted mails against spam, by replacing @ with [at]*/
@@ -1220,7 +1220,7 @@
}
$name = empty($comment['author']) ? ANONYMOUS : $comment['author'];
- $body = htmlspecialchars(strip_tags($comment['comment']));
+ $body = $comment['comment'];
?>
<div class="serendipity_comment">
<a <?php echo ($serendipity['XHTML11'] ? 'id' : 'name'); ?>="c<?php echo $comment['id']; ?>"></a>
|