forked from GNUsocial/gnu-social
Allow bitcoin scheme to URLs
This commit is contained in:
parent
81f9a59f25
commit
1cec627d72
@ -312,6 +312,7 @@ class File_redirection extends Managed_DataObject
|
||||
$out_url = str_replace('.-()', '', $out_url);
|
||||
break;
|
||||
|
||||
case 'bitcoin':
|
||||
case 'mailto':
|
||||
case 'magnet':
|
||||
case 'aim':
|
||||
|
@ -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?)://)'.
|
||||
'|'.
|
||||
'(?:(?:mailto|aim|tel|xmpp):)'.
|
||||
'(?:(?:bitcoin|mailto|aim|tel|xmpp):)'.
|
||||
')'.
|
||||
'(?:[\pN\pL\-\_\+\%\~]+(?::[\pN\pL\-\_\+\%\~]+)?\@)?'. //user:pass@
|
||||
'(?:'.
|
||||
|
Loading…
Reference in New Issue
Block a user