Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv26874
Modified Files:
serendipity_functions.inc.php
Log Message:
Converted all HTML tags in comments to plaintext (htmlentities)
+ A little cleanup in printTrackbacks and printComments
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- serendipity_functions.inc.php 18 Jun 2003 14:14:56 -0000 1.68
+++ serendipity_functions.inc.php 20 Jun 2003 00:42:26 -0000 1.69
@@ -441,12 +441,12 @@
}
$name = empty($comment['author']) ? 'Anonymous' : $comment['author'];
- $type = $comment['type'] == 'trackback' ? TRACKBACK_FROM : POSTED_BY;
+ $body = htmlentities($comment['body']);
?>
<tr>
<td class="serendipity_comment">
<a name="c<?=$comment['id']?>"></a>
- <?=nl2br(serendipity_markup_text(serendipity_emoticate($comment['body'])))?><br />
+ <?=nl2br(serendipity_markup_text(serendipity_emoticate($body)))?><br />
<div class="serendipity_comment_source">
<a href="<?=$PHP_SELF?>#c<?=$comment['id']?>" title="Link to comment #<?= $x ?>">#<?= $x ?></a> -
<?php
@@ -498,8 +498,7 @@
foreach ($comments as $comment) {
$link = empty($comment['url']) ? $comment['email'] : $comment['url'];
$name = empty($comment['author']) ? 'Anonymous' : $comment['author'];
- $title= strip_tags($comment['title']);
- $type = $comment['type'] == 'trackback' ? TRACKBACK_FROM : POSTED_BY;
+ $title= strip_tags($comment['title']);
?>
<tr>
<td class="serendipity_comment">
|