From e1bf736ffa421b6a4a9f2196a965d67782cef7d8 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 2 Jan 2003 14:54:33 +0000 Subject: [PATCH] Fixed that damn www linking problem with words like wwwroot :-) --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.5