forked from GithubBackups/vichan
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();
|
$markup_urls = Array();
|
||||||
|
|
||||||
$body = preg_replace_callback(
|
$body = preg_replace_callback(
|
||||||
'/((?:https?:\/\/|ftp:\/\/|irc:\/\/)[^\s<>()"]*?(?:\([^\s<>()"]*?\)[^\s<>()"]*?)*)((?:\s|<|>|"|\.||\]|!|\?|,|,|")*(?:[\s<>()"]|$))/',
|
'/((?:https?:\/\/|ftp:\/\/|irc:\/\/)[^\s<>()"]+?(?:\([^\s<>()"]*?\)[^\s<>()"]*?)*)((?:\s|<|>|"|\.||\]|!|\?|,|,|")*(?:[\s<>()"]|$))/',
|
||||||
'markup_url',
|
'markup_url',
|
||||||
$body,
|
$body,
|
||||||
-1,
|
-1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user