cvs: pearweb /public_html/bugs bug.php
| From: | Daniel Convissor | Date: | Tue, 08 Jun 2004 06:01:36 +0000 |
| Subject: | cvs: pearweb /public_html/bugs bug.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-20351@lists.php.net to get a copy of this message | ||
danielc Tue Jun 8 02:01:36 2004 EDT
Modified files:
/pearweb/public_html/bugs bug.php
Log:
Flip order of spam_protect() and htmlspecialchars() to allow better address obfuscation in
spam_protect().
http://cvs.php.net/diff.php/pearweb/public_html/bugs/bug.php?r1=1.35&r2=1.36&ty=u
Index: pearweb/public_html/bugs/bug.php
diff -u pearweb/public_html/bugs/bug.php:1.35 pearweb/public_html/bugs/bug.php:1.36
--- pearweb/public_html/bugs/bug.php:1.35 Mon Jun 7 15:06:16 2004
+++ pearweb/public_html/bugs/bug.php Tue Jun 8 02:01:36 2004
@@ -1,6 +1,6 @@
<?php /* vim: set noet ts=4 sw=4: : */
-// $Id: bug.php,v 1.35 2004/06/07 19:06:16 mj Exp $
+// $Id: bug.php,v 1.36 2004/06/08 06:01:36 danielc Exp $
require_once './include/prepend.inc';
require_once './include/cvs-auth.inc';
@@ -324,7 +324,7 @@
</tr>
<tr id="submitter">
<th class="details">From:</th>
- <td colspan="3"><?php echo
htmlspecialchars(spam_protect($bug['email'])) ?></td>
+ <td colspan="3"><?php echo
spam_protect(htmlspecialchars($bug['email'])) ?></td>
</tr>
<tr id="categorization">
<th class="details">Status:</th>
@@ -765,7 +765,7 @@
global $edit, $id, $trusted_developers, $user;
echo '<div class="comment">';
- echo "<b>[",format_date($ts),"] ",
htmlspecialchars(spam_protect($email)), "</b>\n";
+ echo "<b>[",format_date($ts),"] ",
spam_protect(htmlspecialchars($email)), "</b>\n";
echo ($edit == 1 && $com_id !== 0 && in_array($user, $trusted_developers)) ?
"<a
href=\"{$_SERVER['PHP_SELF']}?id=$id&edit=1&delete_comment=$com_id\">[delete]</a>\n"
: '';
echo '<pre class="note">';
$note =
addlinks(preg_replace("/(\r?\n){3,}/","\n\n",wordwrap($comment,72,"\n",1)));