aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-25 20:09:32 -0700
committerFriendika <info@friendika.com>2011-08-25 20:09:32 -0700
commit5eb08d43b6f78b1aec5f40d4a53725e713cfd9b5 (patch)
tree2e7d711c67b04279f1fdde5b6dbed1f8188e1752 /include/bbcode.php
parent99ea045723b89a312db5227f0036c76d481e58a1 (diff)
downloadvolse-hubzilla-5eb08d43b6f78b1aec5f40d4a53725e713cfd9b5.tar.gz
volse-hubzilla-5eb08d43b6f78b1aec5f40d4a53725e713cfd9b5.tar.bz2
volse-hubzilla-5eb08d43b6f78b1aec5f40d4a53725e713cfd9b5.zip
tweak to bbcode linkificator
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 3619015ca..6c26dabfe 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -41,7 +41,7 @@ function bbcode($Text,$preserve_nl = false) {
// Perform URL Search
- $Text = preg_replace("/([^\]\=]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%\$\!\+\,]+)/", ' <a href="$2" target="external-link">$2</a>', $Text);
+ $Text = preg_replace("/([^\]\=]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\%\$\!\+\,]+)/", ' <a href="$2" target="external-link">$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);