cvs: pearweb /public_html/bugs/include functions.inc

From: Date: Sat, 07 Mar 2009 15:41:33 +0000
Subject: cvs: pearweb /public_html/bugs/include functions.inc
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-8235@lists.php.net to get a copy of this message
wiesemann Sat Mar 7 15:41:33 2009 UTC Modified files: /pearweb/public_html/bugs/include functions.inc Log: - fixed Bug #15990: Bug tracker: remove HTML tags from "changeset" information http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/include/functions.inc?r1=1.176&r2=1.177&diff_format=u Index: pearweb/public_html/bugs/include/functions.inc diff -u pearweb/public_html/bugs/include/functions.inc:1.176 pearweb/public_html/bugs/include/functions.inc:1.177 --- pearweb/public_html/bugs/include/functions.inc:1.176 Sat Jan 3 08:22:25 2009 +++ pearweb/public_html/bugs/include/functions.inc Sat Mar 7 15:41:33 2009 @@ -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: functions.inc,v 1.176 2009/01/03 08:22:25 dufuz Exp $ + * @version $Id: functions.inc,v 1.177 2009/03/07 15:41:33 wiesemann Exp $ */ @@ -651,10 +651,15 @@ } if ($ncomment) { + $ncomment = preg_replace('#<div id="changeset">(.*)</div>#sUe', + "ltrim(strip_tags('\\1'))", $ncomment); $text[] = " New Comment:\n\n" . $ncomment; } - $text[] = $pbu->getOldComments($bug['id'], empty($ncomment)); + $old_comments = $pbu->getOldComments($bug['id'], empty($ncomment)); + $old_comments = preg_replace('#<div id="changeset">(.*)</div>#sUe', + "ltrim(strip_tags('\\1'))", $old_comments); + $text[] = $old_comments; /* format mail so it looks nice, use 72 to make piners happy */ $wrapped_text = wordwrap(join("\n",$text), 72);

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