diff options
author | Friendika <info@friendika.com> | 2011-01-24 00:00:57 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-01-24 00:00:57 -0800 |
commit | a068f8e6141167146f1e9750bdea0f1e59d2f7d3 (patch) | |
tree | fe367c05a4488faca607b8bf34b361db19fbb566 | |
parent | 205a2b8930c9d519c06f106d5d37702f8f69d013 (diff) | |
download | volse-hubzilla-a068f8e6141167146f1e9750bdea0f1e59d2f7d3.tar.gz volse-hubzilla-a068f8e6141167146f1e9750bdea0f1e59d2f7d3.tar.bz2 volse-hubzilla-a068f8e6141167146f1e9750bdea0f1e59d2f7d3.zip |
linkify - need at least one character after ://
-rw-r--r-- | include/bbcode.php | 2 |
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); |