Skip to content
Browse files

Fixed that damn www linking problem with words like wwwroot :-)

  • Loading branch information...
1 parent 36b4f98 commit e1bf736ffa421b6a4a9f2196a965d67782cef7d8 moodler committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
2 lib/weblib.php
@@ -506,7 +506,7 @@ function text_to_html($text, $smiley=true, $para=true) {
"\\1<A HREF=\"\\2://\\3\\4\" TARGET=\"newpage\">\\2://\\3\\4</A>", $text);
/// eg www.moodle.com
- $text = eregi_replace("([[:space:]])www.([^[:space:]]*)([[:alnum:]#?/&=])",
+ $text = eregi_replace("([[:space:]])www\.([^[:space:]]*)([[:alnum:]#?/&=])",
"\\1<A HREF=\"http://www.\\2\\3\" TARGET=\"newpage\">www.\\2\\3</A>", $text);
/// Make returns into HTML newlines.

0 comments on commit e1bf736

Please sign in to comment.
Something went wrong with that request. Please try again.