aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-03-29 17:56:03 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-03-29 17:56:03 +0000
commitf388c2d96e3ac59390f134a2b69a15589e8870b0 (patch)
tree857c647b1392d7c409c08c8ed2a22e583a108377 /phpBB/includes/functions.php
parentcf9617bdb55900587566b0cdafc074f5e8fe2954 (diff)
downloadforums-f388c2d96e3ac59390f134a2b69a15589e8870b0.tar
forums-f388c2d96e3ac59390f134a2b69a15589e8870b0.tar.gz
forums-f388c2d96e3ac59390f134a2b69a15589e8870b0.tar.bz2
forums-f388c2d96e3ac59390f134a2b69a15589e8870b0.tar.xz
forums-f388c2d96e3ac59390f134a2b69a15589e8870b0.zip
#1362 - Url shortening error on local URL's
git-svn-id: file:///svn/phpbb/trunk@5758 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
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<!-- l --><a href="$2/$3">$3</a><!-- l -->';
// matches a xxxx://aaaaa.bbb.cccc. ...