cvs: php-bugs-web / bug.php

From: Date: Fri, 20 Dec 2002 11:42:40 +0000
Subject: cvs: php-bugs-web / bug.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-14346@lists.php.net to get a copy of this message
derick Fri Dec 20 06:42:40 2002 EDT Modified files: /php-bugs-web bug.php Log: - Add links to bugreports in bug display screen (patch by Justin Plock <jplock@plock.net>) Index: php-bugs-web/bug.php diff -u php-bugs-web/bug.php:1.40 php-bugs-web/bug.php:1.41 --- php-bugs-web/bug.php:1.40 Tue Oct 1 13:05:16 2002 +++ php-bugs-web/bug.php Fri Dec 20 06:42:39 2002 @@ -453,7 +453,8 @@ echo "<b>[",format_date($ts),"] ",htmlspecialchars($email), "</b>\n"; echo "<pre class=\"note\">"; - echo addlinks(preg_replace("/(\r?\n){3,}/","\n\n",wordwrap($comment,72,"\n",1))); + $note = addlinks(preg_replace("/(\r?\n){3,}/","\n\n",wordwrap($comment,72,"\n",1))); + echo preg_replace('/#([0-9]+)/', "<a href=\"$PHP_SELF?id=\\1\">#\\1</a>", $note); echo "</pre>\n"; echo "</div>"; }

« previous php.mirrors (#14346) next »