From: moodler Date: Thu, 2 Jan 2003 14:54:33 +0000 (+0000) Subject: Fixed that damn www linking problem with words like wwwroot :-) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e1bf736ffa421b6a4a9f2196a965d67782cef7d8;p=moodle.git Fixed that damn www linking problem with words like wwwroot :-) --- diff --git a/lib/weblib.php b/lib/weblib.php index dc7655adca..1766af06a3 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -506,7 +506,7 @@ function text_to_html($text, $smiley=true, $para=true) { "\\1\\2://\\3\\4", $text); /// eg www.moodle.com - $text = eregi_replace("([[:space:]])www.([^[:space:]]*)([[:alnum:]#?/&=])", + $text = eregi_replace("([[:space:]])www\.([^[:space:]]*)([[:alnum:]#?/&=])", "\\1www.\\2\\3", $text); /// Make returns into HTML newlines.