svn: /pear/pearweb/trunk/public_html/bugs/ bug.php
| From: | Daniel O'Connor | Date: | Fri, 18 Dec 2009 01:07:29 +0000 |
| Subject: | svn: /pear/pearweb/trunk/public_html/bugs/ bug.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9123@lists.php.net to get a copy of this message | ||
clockwerx Fri, 18 Dec 2009 01:07:29 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=292278
Log:
Prevent double cleaning.
function clean($in)
{
return htmlspecialchars($in, ENT_QUOTES, 'UTF-8', false);
}
Changed paths:
U pear/pearweb/trunk/public_html/bugs/bug.php
Modified: pear/pearweb/trunk/public_html/bugs/bug.php
===================================================================
--- pear/pearweb/trunk/public_html/bugs/bug.php 2009-12-17 23:52:23 UTC (rev 292277)
+++ pear/pearweb/trunk/public_html/bugs/bug.php 2009-12-18 01:07:29 UTC (rev 292278)
@@ -54,7 +54,7 @@
* 11 - List patches
* 12 - Patch details
* 13 - Add patch
- *
+ *
* @var integer
*/
$edit = (empty($_REQUEST['edit']) || !(int)$_REQUEST['edit']) ? 0 :
(int)$_REQUEST['edit'];
@@ -762,7 +762,7 @@
control(0, 'Comments', $id, $edit);
-// Display patches
+// Display patches
$patches = new Bugs_Patchtracker();
$patchcount = $patches->getPatchCount($id);
if ($patchcount > 0) {
@@ -1329,8 +1329,7 @@
$status = substr($comment, 0, $needle) . $search;
}
- $comment = htmlspecialchars($fix, ENT_QUOTES, 'UTF-8', false);
- $comment = make_ticket_links(addlinks(clean($comment)));
+ $comment = make_ticket_links(addlinks(clean($fix)));
$comment = $status . $comment;