diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-03-11 11:31:05 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-03-11 11:31:05 +1100 |
| commit | 6cc5cd73e0b87a0a5a3710ed02775d0cf2734674 (patch) | |
| tree | 7e2497c9c3d22e5cb1d0e4d7514e71da2335b608 | |
| parent | 32c8791ff8223e04d73e52106eb5a8de2ca871c5 (diff) | |
don't accept just 'http://' etc as a URL
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
