forked from GNUsocial/gnu-social
Harmonize, clarify, categorize URL schemes
Regular expression + avoid-redirection list now match each other.
This commit is contained in:
@@ -885,7 +885,7 @@ function common_replace_urls_callback($text, $callback, $arg = null) {
|
||||
'(?:'.
|
||||
'(?:(?:https?|ftps?|mms|rtsp|gopher|news|nntp|telnet|wais|file|prospero|webcal|ircs?)://)'.
|
||||
'|'.
|
||||
'(?:(?:bitcoin|mailto|aim|tel|xmpp):)'.
|
||||
'(?:(?:aim|bitcoin|fax|jabber|mailto|tel|xmpp):)'.
|
||||
')'.
|
||||
'(?:[\pN\pL\-\_\+\%\~]+(?::[\pN\pL\-\_\+\%\~]+)?\@)?'. //user:pass@
|
||||
'(?:'.
|
||||
|
Reference in New Issue
Block a user