From 6cc5cd73e0b87a0a5a3710ed02775d0cf2734674 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sun, 11 Mar 2012 11:31:05 +1100 Subject: [PATCH] don't accept just 'http://' etc as a URL --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index fb701037..d7136fa7 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1372,7 +1372,7 @@ $markup_urls = Array(); $body = preg_replace_callback( - '/((?:https?:\/\/|ftp:\/\/|irc:\/\/)[^\s<>()"]*?(?:\([^\s<>()"]*?\)[^\s<>()"]*?)*)((?:\s|<|>|"|\.||\]|!|\?|,|,|")*(?:[\s<>()"]|$))/', + '/((?:https?:\/\/|ftp:\/\/|irc:\/\/)[^\s<>()"]+?(?:\([^\s<>()"]*?\)[^\s<>()"]*?)*)((?:\s|<|>|"|\.||\]|!|\?|,|,|")*(?:[\s<>()"]|$))/', 'markup_url', $body, -1,