1 diff -Naru a/include/class.misc.php b/include/class.misc.php
2 --- a/include/class.misc.php 2005-06-13 02:17:46 -07:00
3 +++ b/include/class.misc.php 2005-06-13 02:17:46 -07:00
5 function activateLinks($text, $class = "link")
7 $text = preg_replace("'(\w+)://([\w\+\-\@\=\?\.\%\/\:\&\;~]+)(\.)?'", "<a title=\"open \\1://\\2 in a new window\" class=\"$class\" href=\"\\1://\\2\" target=\"_\\2\">\\1://\\2</a>", $text);
8 - $text = preg_replace("'(\s+)www.([\w\+\-\@\=\?\.\%\/\:\&\;~]+)(\.\s|\s)'", "\\1<a title=\"open http://www.\\2 in a new window\" class=\"$class\" href=\"http://www.\\2\" target=\"_\\2\">www.\\2</a>\\3" , $text);
9 + $text = preg_replace("'(\s+)www\.([\w\+\-\@\=\?\.\%\/\:\&\;~]+)(\.\s|\s)'", "\\1<a title=\"open http://www.\\2 in a new window\" class=\"$class\" href=\"http://www.\\2\" target=\"_\\2\">www.\\2</a>\\3" , $text);
13 # This is a BitKeeper generated diff -Nru style patch.
16 # 2005/06/07 09:25:15-05:00 jpm@mysql.com
17 # Fixed the link activation code to properly parse and ignore certain words (Bug #10263)
20 # 2005/06/07 09:25:14-05:00 jpm@mysql.com +1 -0
21 # Fixed the link activation code to properly parse and ignore certain words (Bug #10263)
23 # include/class.misc.php
24 # 2005/06/07 09:25:14-05:00 jpm@mysql.com +1 -1
25 # Fixed the link activation code to properly parse and ignore certain words (Bug #10263)