aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-06-11 05:06:48 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-06-11 05:06:48 +0000
commitce3b07eee7dbefc68dcd8eab3ab667e6532c8561 (patch)
tree678987e1b99abcb214a1a3fd10bb14e2087ebe4b /phpBB/includes/functions.php
parent72bb5082101318c820a34be9ee09a092bd81b4bc (diff)
downloadforums-ce3b07eee7dbefc68dcd8eab3ab667e6532c8561.tar
forums-ce3b07eee7dbefc68dcd8eab3ab667e6532c8561.tar.gz
forums-ce3b07eee7dbefc68dcd8eab3ab667e6532c8561.tar.bz2
forums-ce3b07eee7dbefc68dcd8eab3ab667e6532c8561.tar.xz
forums-ce3b07eee7dbefc68dcd8eab3ab667e6532c8561.zip
;-)
git-svn-id: file:///svn/phpbb/trunk@6047 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 66903cc2c9..504aa44dae 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -1868,8 +1868,8 @@ 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;|quot;))*)#i';
- $magic_url_replace[] = '$1<!-- l --><a href="$2/$3">$3</a><!-- l -->';
+ $magic_url_match[] = '#(^|[\n \]]|\()(' . preg_quote($server_url, '#') . ')/(([^[ \t\n\r<"\'\)&]+|&(?!lt;|quot;))*)#ie';
+ $magic_url_replace[] = "'\$1<!-- l --><a href=\"\$2/' . preg_replace('/(&amp;|\?)sid=[0-9a-f]{32}/', '\\1', '\$3') . '\">' . preg_replace('/(&amp;|\?)sid=[0-9a-f]{32}/', '\\1', '\$3') . '</a><!-- l -->'";
// matches a xxxx://aaaaa.bbb.cccc. ...
$magic_url_match[] = '#(^|[\n \]]|\()([\w]+:/{2}.*?([^[ \t\n\r<"\'\)&]+|&(?!lt;|quot;))*)#ie';