aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-24 00:00:57 -0800
committerFriendika <info@friendika.com>2011-01-24 00:00:57 -0800
commita068f8e6141167146f1e9750bdea0f1e59d2f7d3 (patch)
treefe367c05a4488faca607b8bf34b361db19fbb566 /include/bbcode.php
parent205a2b8930c9d519c06f106d5d37702f8f69d013 (diff)
downloadvolse-hubzilla-a068f8e6141167146f1e9750bdea0f1e59d2f7d3.tar.gz
volse-hubzilla-a068f8e6141167146f1e9750bdea0f1e59d2f7d3.tar.bz2
volse-hubzilla-a068f8e6141167146f1e9750bdea0f1e59d2f7d3.zip
linkify - need at least one character after ://
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 81b581cdb..9e5f5a371 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -22,7 +22,7 @@ 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" >$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);