diff --git a/lib/weblib.php b/lib/weblib.php index 2a02e8b3ff7..3fdd61c13dd 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2325,14 +2325,14 @@ 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); }