projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbb0df9
)
Detect xmpp uri's and make them into hyperlinks
author
Craig Andrews
<candrews@integralblue.com>
Tue, 21 Jul 2009 17:52:59 +0000
(13:52 -0400)
committer
Craig Andrews
<candrews@integralblue.com>
Tue, 21 Jul 2009 17:52:59 +0000
(13:52 -0400)
http://laconi.ca/trac/ticket/1592
lib/util.php
patch
|
blob
|
history
diff --git
a/lib/util.php
b/lib/util.php
index 9e8ec41d2592a29f46f0aa62195d24ef5ea13fcb..f23f10e2c0879a479b9d895826c31b388e2fd179 100644
(file)
--- a/
lib/util.php
+++ b/
lib/util.php
@@
-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]+'.
'|'.