aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-01-28 07:26:57 +0100
committerfabrixxm <fabrix.xm@gmail.com>2011-01-28 07:26:57 +0100
commit8257b1b684d2c6087a93ae690aa27c907e578aa3 (patch)
treea0f4c07381c9c32aff694ecceaad37bf5fdf8aa4 /include/bbcode.php
parent444d82a5328433fbe48e18b928d35218905a756c (diff)
parent5d77bd9489763721b8f3e4a51c8cef1181276157 (diff)
downloadvolse-hubzilla-8257b1b684d2c6087a93ae690aa27c907e578aa3.tar.gz
volse-hubzilla-8257b1b684d2c6087a93ae690aa27c907e578aa3.tar.bz2
volse-hubzilla-8257b1b684d2c6087a93ae690aa27c907e578aa3.zip
Merge branch 'friendika-master'
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 9e5f5a371..8382cc804 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -22,10 +22,10 @@ function bbcode($Text) {
// Perform URL Search
- $Text = preg_replace("/([^\]\=]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%]+)/", ' <a href="$2" >$2</a>', $Text);
+ $Text = preg_replace("/([^\]\=]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%]+)/", ' <a href="$2" target="external-link">$2</a>', $Text);
- $Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '<a href="$1" >$1</a>', $Text);
- $Text = preg_replace("(\[url\=([$URLSearchString]*)\](.+?)\[/url\])", '<a href="$1" >$2</a>', $Text);
+ $Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '<a href="$1" target="external-link">$1</a>', $Text);
+ $Text = preg_replace("(\[url\=([$URLSearchString]*)\](.+?)\[/url\])", '<a href="$1" target="external-link">$2</a>', $Text);
//$Text = preg_replace("(\[url\=([$URLSearchString]*)\]([$URLSearchString]*)\[/url\])", '<a href="$1" target="_blank">$2</a>', $Text);