]> git.mxchange.org Git - friendica.git/commitdiff
linkify - need at least one character after ://
authorFriendika <info@friendika.com>
Mon, 24 Jan 2011 08:00:57 +0000 (00:00 -0800)
committerFriendika <info@friendika.com>
Mon, 24 Jan 2011 08:00:57 +0000 (00:00 -0800)
include/bbcode.php

index 81b581cdbdde51672cf6277182afc1c1f2b1b196..9e5f5a3711c7504adea322981253c70de7f9f480 100644 (file)
@@ -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);