From 8267366e443500565d58ec097993fbeeb778a286 Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Fri, 8 Jan 2010 22:16:37 +0000 Subject: [PATCH] MDL-21168 avoid http://www.whatever to be linked twice --- lib/weblib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index fe90134fd51..2a02e8b3ff7 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2327,12 +2327,12 @@ function convert_urls_into_links(&$text) { if ($unicoderegexp) { //We can use unicode modifiers $text = preg_replace('#(?\\1', $text); - $text = preg_replace('#(?\\1', $text); } else { //We cannot use unicode modifiers $text = preg_replace('#(?\\1', $text); - $text = preg_replace('#(?\\1', $text); }