From ef29cb5a157be583bf47423a4feab68a759793e8 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Wed, 13 Jan 2010 02:19:21 +0000 Subject: [PATCH] weblib MDL-21296 added a comment about convert_urls_into_links() causing timeouts --- lib/weblib.php | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5