aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/bbcode.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/bbcode.php')
-rw-r--r--phpBB/includes/bbcode.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php
index cf1755c485..3573f7b8c1 100644
--- a/phpBB/includes/bbcode.php
+++ b/phpBB/includes/bbcode.php
@@ -201,11 +201,11 @@ function bbencode_second_pass($text, $uid)
$replacements[2] = $bbcode_tpl['url2'];
// [url=xxxx://www.phpbb.com]phpBB[/url] code..
- $patterns[3] = "#\[url=([a-z]+?://){1}([a-z0-9\-\.,\?!%\*_\#:~\\&$@\/=\+]+)\]([a-z0-9\-\.,\?!%\*_\#:~\\&$@\/=\+ ]+)\[/url\]#si";
+ $patterns[3] = "#\[url=([a-z]+?://){1}([a-z0-9\-\.,\?!%\*_\#:~\\&$@\/=\+]+)\](.*?)\[/url\]#si";
$replacements[3] = $bbcode_tpl['url3'];
// [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix).
- $patterns[4] = "#\[url=([a-z0-9\-\.,\?!%\*_\#:~\\&$@\/=\+]+)\]([a-z0-9\-\.,\?!%\*_\#:~\\&$@\/=\+ ]+)\[/url\]#si";
+ $patterns[4] = "#\[url=([a-z0-9\-\.,\?!%\*_\#:~\\&$@\/=\+]+)\](.*?)\[/url\]#si";
$replacements[4] = $bbcode_tpl['url4'];
// [email]user@domain.tld[/email] code..