From b0fbf376cc6b8fb471ac7ae1fea0aea3264e154d Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Tue, 12 Jan 2010 13:37:13 +0000 Subject: [PATCH] MDL-21168 - Support encoded chars in query part of URL. Done in review day, but it's tested, grrr. --- lib/weblib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); }