[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.337,1.338
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sun Jul 11 15:18:51 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv23122
Modified Files:
lib-common.php
Log Message:
Only make clickable links when "www" is followed by a dot.
Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.337
retrieving revision 1.338
diff -C2 -d -r1.337 -r1.338
*** lib-common.php 10 Jul 2004 18:50:04 -0000 1.337
--- lib-common.php 11 Jul 2004 19:18:49 -0000 1.338
***************
*** 5638,5642 ****
function COM_makeClickableLinks( $text )
{
! $text = preg_replace( '/([^"])((((ht|f)tps?):(\/\/)|www)[a-z0-9%&_\-\+,;=:@~#\/.\?\[\]]+(\/|[+0-9a-z]))/is', '\\1<a href="\\2">\\2</a>', $text );
$text = str_replace( '<a href="www', '<a href="http://www', $text );
--- 5638,5642 ----
function COM_makeClickableLinks( $text )
{
! $text = preg_replace( '/([^"])((((ht|f)tps?):(\/\/)|www\.)[a-z0-9%&_\-\+,;=:@~#\/.\?\[\]]+(\/|[+0-9a-z]))/is', '\\1<a href="\\2">\\2</a>', $text );
$text = str_replace( '<a href="www', '<a href="http://www', $text );
More information about the geeklog-cvs
mailing list