From: Friendika Date: Mon, 24 Jan 2011 08:00:57 +0000 (-0800) Subject: linkify - need at least one character after :// X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a068f8e6141167146f1e9750bdea0f1e59d2f7d3;p=friendica.git linkify - need at least one character after :// --- diff --git a/include/bbcode.php b/include/bbcode.php index 81b581cdbd..9e5f5a3711 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\:\/\-\?\&\.\=\_\~\#\'\%]*)/", ' $2', $Text); + $Text = preg_replace("/([^\]\=]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%]+)/", ' $2', $Text); $Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '$1', $Text); $Text = preg_replace("(\[url\=([$URLSearchString]*)\](.+?)\[/url\])", '$2', $Text);