For Programmers: Free Programming Magazines  


Home > Archive > PHP Mirrors > April 2005 > cvs: php-bugs-web / bug.php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: php-bugs-web / bug.php
Derick Rethans

2005-04-19, 8:55 am

derick Tue Apr 19 06:54:55 2005 EDT

Modified files:
/php-bugs-web bug.php
Log:
- "addlinks()" does not only add links, it also escapes - pretty confusing.


http://cvs.php.net/diff.php/php-bug...73&r2=1.74&ty=u
Index: php-bugs-web/bug.php
diff -u php-bugs-web/bug.php:1.73 php-bugs-web/bug.php:1.74
--- php-bugs-web/bug.php:1.73 Mon Apr 18 04:04:38 2005
+++ php-bugs-web/bug.php Tue Apr 19 06:54:54 2005
@@ -515,7 +515,7 @@
echo ($edit == 1 && $com_id !== 0 && in_array($user, $trusted_developers)) ? "<a href=\"$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)));
- $note = wordwrap($comment,72,"\n",1);
+ $note = htmlspecialchars(wordwrap($comment,72,"\n",1));
echo preg_replace('/(bug\ *#([0-9]+))/i', "<a href=\"$PHP_SELF?id=\\2\">\\1</a>", $note);
echo "</pre>\n";
echo "</div>";
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com