Add support for gopher url:// markup as hyperlinks

This commit is contained in:
Benjamin Southall 2019-04-21 20:20:21 +10:00
parent 75aa233f9a
commit 81d0bd72c0
1 changed files with 1 additions and 1 deletions

View File

@ -1959,7 +1959,7 @@ function markup(&$body, $track_cites = false, $op = false) {
$markup_urls = array();
$body = preg_replace_callback(
'/((?:https?:\/\/|ftp:\/\/|irc:\/\/)[^\s<>()"]+?(?:\([^\s<>()"]*?\)[^\s<>()"]*?)*)((?:\s|<|>|"|\.||\]|!|\?|,|&#44;|&quot;)*(?:[\s<>()"]|$))/',
'/((?:https?:\/\/|ftp:\/\/|irc:\/\/|gopher:\/\/)[^\s<>()"]+?(?:\([^\s<>()"]*?\)[^\s<>()"]*?)*)((?:\s|<|>|"|\.||\]|!|\?|,|&#44;|&quot;)*(?:[\s<>()"]|$))/',
'markup_url',
$body,
-1,