don't accept just 'http://' etc as a URL
This commit is contained in:
parent
32c8791ff8
commit
6cc5cd73e0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user