diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 0592401756..c192cf8264 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2637,7 +2637,7 @@ function make_clickable($text, $server_url = false, $class = 'postlink') $magic_url_replace[] = "'\$1' . ((strlen('\$2') > 55) ? str_replace('&', '&', substr(str_replace('&', '&', '\$2'), 0, 39)) . ' ... ' . str_replace('&', '&', substr(str_replace('&', '&', '\$2'), -10)) : '\$2') . ''"; // matches an email@domain type address at the start of a line, or after a space or after what might be a BBCode. - $magic_url_match[] = '/(^|[\n\t )>])(' . get_preg_expression('email') . ')/ie'; + $magic_url_match[] = '/(^|[\n\t (>])(' . get_preg_expression('email') . ')/ie'; $magic_url_replace[] = "'\$1' . ((strlen('\$2') > 55) ? substr('\$2', 0, 39) . ' ... ' . substr('\$2', -10) : '\$2') . ''"; } @@ -3271,7 +3271,7 @@ function get_preg_expression($mode) return array( '#.*?#', '#.*?#', - '#.*?#', + '#.*?#', '#