aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-01-28 10:08:39 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-01-28 10:08:39 +0100
commitbf8dadb9700fd0600a38116bf03588883350aab1 (patch)
treea0f4c07381c9c32aff694ecceaad37bf5fdf8aa4 /include
parent444d82a5328433fbe48e18b928d35218905a756c (diff)
parent5d77bd9489763721b8f3e4a51c8cef1181276157 (diff)
downloadvolse-hubzilla-bf8dadb9700fd0600a38116bf03588883350aab1.tar.gz
volse-hubzilla-bf8dadb9700fd0600a38116bf03588883350aab1.tar.bz2
volse-hubzilla-bf8dadb9700fd0600a38116bf03588883350aab1.zip
Merge remote branch 'friendika-master/master'
Diffstat (limited to 'include')
-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);