forked from GNUsocial/gnu-social
Detect xmpp uri's and make them into hyperlinks
http://laconi.ca/trac/ticket/1592
This commit is contained in:
parent
fbb0df9f54
commit
a9613e999f
@ -414,9 +414,9 @@ function common_replace_urls_callback($text, $callback, $notice_id = null) {
|
||||
$regex = '#'.
|
||||
'(?:'.
|
||||
'(?:'.
|
||||
'(?:https?|ftps?|mms|rtsp|gopher|news|nntp|telnet|wais|file|prospero|webcal|xmpp|irc)://'.
|
||||
'(?:https?|ftps?|mms|rtsp|gopher|news|nntp|telnet|wais|file|prospero|webcal|irc)://'.
|
||||
'|'.
|
||||
'(?:mailto|aim|tel):'.
|
||||
'(?:mailto|aim|tel|xmpp):'.
|
||||
')'.
|
||||
'[^.\s]+\.[^\s]+'.
|
||||
'|'.
|
||||
|
Loading…
Reference in New Issue
Block a user