Code Comments
Programming Forum and web based access to our favorite programming groups.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 hre f=\"$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>";
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.