diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 2f73a5c27b..da93b4e403 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1795,7 +1795,7 @@ function make_clickable($text, $server_url = false) // Be sure to not let the matches cross over. ;) // relative urls for this board - $magic_url_match[] = '#(^|[\n ]|\()(' . preg_quote($server_url, '#') . ')/([^ \t\n\r<"\'\)&]+|&(?!lt;))*#i'; + $magic_url_match[] = '#(^|[\n ]|\()(' . preg_quote($server_url, '#') . ')/(([^ \t\n\r<"\'\)&]+|&(?!lt;))*)#i'; $magic_url_replace[] = '$1$3'; // matches a xxxx://aaaaa.bbb.cccc. ...