cvs: pearweb /public_html/bugs bug.php

From: Date: Tue, 25 Mar 2008 02:18:26 +0000
Subject: cvs: pearweb /public_html/bugs bug.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7379@lists.php.net to get a copy of this message
dufuz Tue Mar 25 02:18:26 2008 UTC Modified files: /pearweb/public_html/bugs bug.php Log: Use the new PEAR_Bugs_Utils class remove rinse() http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/bug.php?r1=1.195&r2=1.196&diff_format=u Index: pearweb/public_html/bugs/bug.php diff -u pearweb/public_html/bugs/bug.php:1.195 pearweb/public_html/bugs/bug.php:1.196 --- pearweb/public_html/bugs/bug.php:1.195 Thu Mar 20 22:44:56 2008 +++ pearweb/public_html/bugs/bug.php Tue Mar 25 02:18:26 2008 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: bug.php,v 1.195 2008/03/20 22:44:56 dufuz Exp $ + * @version $Id: bug.php,v 1.196 2008/03/25 02:18:26 dufuz Exp $ */ /* @@ -29,10 +29,11 @@ // Get user's CVS password require_once './include/cvs-auth.inc'; +require_once 'bugs/pear-bugs-utils.php'; +$pbu = new PEAR_Bugs_Utils; + // Numeral Captcha Class require_once 'Text/CAPTCHA/Numeral.php'; - -// Instantiate the numeral captcha object. $numeralCaptcha = new Text_CAPTCHA_Numeral(); Bug_DataObject::init(); @@ -142,14 +143,14 @@ } if (!empty($_POST['pw'])) { - $user = !empty($_POST['user']) ? htmlspecialchars(rinse($_POST['user'])) : ''; - $pw = rinse($_POST['pw']); + $user = !empty($_POST['user']) ? htmlspecialchars($_POST['user']) : ''; + $pw = $_POST['pw']; } elseif (isset($auth_user) && $auth_user && $auth_user->handle && $edit == 1) { - $user = rinse($auth_user->handle); - $pw = rinse($auth_user->password); + $user = $auth_user->handle; + $pw = $auth_user->password; } elseif (isset($_COOKIE['MAGIC_COOKIE'])) { @list($user, $pw) = explode(':', base64_decode($_COOKIE['MAGIC_COOKIE'])); - $user = rinse($user); + $user = $user; if ($pw === null) { $pw = ''; } @@ -382,7 +383,7 @@ } } elseif (isset($_POST['in']) && isset($_POST['preview']) && $edit == 2) { $ncomment = trim($_POST['ncomment']); - $from = rinse($_POST['in']['commentemail']); + $from = $_POST['in']['commentemail']; } elseif (isset($_POST['in']) && !isset($_POST['preview']) && $edit == 1) { // Edits submitted by developer @@ -612,7 +613,7 @@ } elseif ($bug['handle'] && $bug['showemail'] != '0') { echo '<a href="/user/' . $bug['handle'] . '">' . $bug['handle'] . '</a>'; } else { - echo spam_protect(htmlspecialchars($bug['email'])); + echo $pbu->spamProtect(htmlspecialchars($bug['email'])); } ?></td> <th>Assigned:</th> @@ -730,7 +731,7 @@ $preview .= '<a href="/user/' . $auth_user->handle . '">' . $auth_user->handle . '</a>'; } else { - $preview .= spam_protect(htmlspecialchars($from)); + $preview .= $pbu->spamProtect(htmlspecialchars($from)); } $preview .= "</strong>\n<pre class=\"note\">"; $comment = wordwrap($ncomment, 72); @@ -949,7 +950,7 @@ <tr> <th>From:</th> <td colspan="3"> - <?php echo spam_protect(field('email')) ?> + <?php echo $pbu->spamProtect(field('email')) ?> </td> </tr> <tr> @@ -1273,7 +1274,7 @@ if ($handle) { echo '<a href="/user/' . $handle . '">' . $handle . "</a></strong>\n"; } else { - echo spam_protect(htmlspecialchars($email))."</strong>\n"; + echo $pbu->spamProtect(htmlspecialchars($email))."</strong>\n"; } } if ($comment_name && $registered) {

« previous php.pear.core (#7379) next »