aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-06-18 12:16:12 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-06-18 12:16:12 +0000
commit2599387b28db8ae42993c6272750cbd5e6b56d9c (patch)
tree4ec18a7154a200407ab15e264161b8e8b7450766
parenteaed6d806eb98abb9e16829ef223b25a8dae72f7 (diff)
downloadforums-2599387b28db8ae42993c6272750cbd5e6b56d9c.tar
forums-2599387b28db8ae42993c6272750cbd5e6b56d9c.tar.gz
forums-2599387b28db8ae42993c6272750cbd5e6b56d9c.tar.bz2
forums-2599387b28db8ae42993c6272750cbd5e6b56d9c.tar.xz
forums-2599387b28db8ae42993c6272750cbd5e6b56d9c.zip
#12473
git-svn-id: file:///svn/phpbb/trunk@7774 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/docs/CHANGELOG.html1
-rw-r--r--phpBB/includes/acp/acp_bbcodes.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 3f028bb85c..46719dfea8 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -281,6 +281,7 @@ p a {
<li>[Fix] Simulate Firebird's affected rows mechanism for older versions of PHP</li>
<li>[Fix] Custom BBCodes properly handle lowercasing of parameterized tags (Bug #12377)</li>
<li>[Fix] Update the forum_id sequence for PostgreSQL during conversion (Bug #11927)</li>
+ <li>[Fix] Allow for multiple tags containing URL and LOCAL_URL tokens (Bug #12473)</li>
</ul>
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php
index 1c43daf642..65c1f9026d 100644
--- a/phpBB/includes/acp/acp_bbcodes.php
+++ b/phpBB/includes/acp/acp_bbcodes.php
@@ -295,10 +295,10 @@ class acp_bbcodes
// @todo Make sure to change this too if something changed in message parsing
$tokens = array(
'URL' => array(
- '!([a-z0-9]+://)?([^< "\r\n\t\]]*)!ie' => "(('\$1') ? '\$1\$2' : 'http://\$2')"
+ '!([a-z0-9]+://)?([^< "\r\n\t\]]*?)!ie' => "(('\$1') ? '\$1\$2' : 'http://\$2')"
),
'LOCAL_URL' => array(
- '!([^:]+/[^< "\r\n\t\]]*)!' => '$1'
+ '!([^:]+/[^< "\r\n\t\]]*?)!' => '$1'
),
'EMAIL' => array(
'!([a-z0-9]+[a-z0-9\-\._]*@(?:(?:[0-9]{1,3}\.){3,5}[0-9]{1,3}|[a-z0-9]+[a-z0-9\-\._]*\.[a-z]+))!i' => '$1'