cvs: php-bugs-web /include functions.inc

From: Date: Tue, 09 Jun 2009 14:26:39 +0000
Subject: cvs: php-bugs-web /include functions.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-5004@lists.php.net to get a copy of this message
scottmac Tue Jun 9 14:26:39 2009 UTC Modified files: /php-bugs-web/include functions.inc Log: Link https URLs too http://cvs.php.net/viewvc.cgi/php-bugs-web/include/functions.inc?r1=1.267&r2=1.268&diff_format=u Index: php-bugs-web/include/functions.inc diff -u php-bugs-web/include/functions.inc:1.267 php-bugs-web/include/functions.inc:1.268 --- php-bugs-web/include/functions.inc:1.267 Wed May 27 19:56:32 2009 +++ php-bugs-web/include/functions.inc Tue Jun 9 14:26:39 2009 @@ -470,7 +470,7 @@ function addlinks($text) { $text = htmlspecialchars($text); - $text = preg_replace("/((mailto|http|ftp|nntp|news):.+?)(&gt;|\\s|\\)|\\.\\s|$)/i","<a rel=\"nofollow\" href=\"\\1\">\\1</a>\\3",$text); + $text = preg_replace("/((mailto|http|https|ftp|nntp|news):.+?)(&gt;|\\s|\\)|\\.\\s|$)/i","<a rel=\"nofollow\" href=\"\\1\">\\1</a>\\3",$text); # what the heck is this for? $text = preg_replace("/[.,]?-=-\"/", '"', $text); return $text;

« previous php.webmaster (#5004) next »