From: Andrew Davis Date: Wed, 13 Jan 2010 02:19:21 +0000 (+0000) Subject: weblib MDL-21296 added a comment about convert_urls_into_links() causing timeouts X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ef29cb5a157be583bf47423a4feab68a759793e8;p=moodle.git weblib MDL-21296 added a comment about convert_urls_into_links() causing timeouts --- diff --git a/lib/weblib.php b/lib/weblib.php index e51341e8c5..59ceb513b1 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1742,6 +1742,7 @@ function convert_urls_into_links(&$text) { $unicoderegexp = @preg_match('/\pL/u', 'a'); // This will fail silenty, returning false, } + //MDL-21296 - use of unicode modifiers may cause a timeout if ($unicoderegexp) { //We can use unicode modifiers $text = preg_replace('#(?\\1', $text);