diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2019-04-21 20:20:21 +1000 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2019-04-21 20:20:21 +1000 |
| commit | 81d0bd72c0fbd6e06564d06f40f9463d931d9b80 (patch) | |
| tree | ed7bb4e40827ce2b468f07a8fdad2f381e297851 /inc | |
| parent | 75aa233f9aed5fc0f57b7d5042be0916f33bf142 (diff) | |
Add support for gopher url:// markup as hyperlinks
Diffstat (limited to 'inc')
| -rwxr-xr-x | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index d77149bd..85b56e58 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -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|<|>|"|\.||\]|!|\?|,|,|")*(?:[\s<>()"]|$))/', + '/((?:https?:\/\/|ftp:\/\/|irc:\/\/|gopher:\/\/)[^\s<>()"]+?(?:\([^\s<>()"]*?\)[^\s<>()"]*?)*)((?:\s|<|>|"|\.||\]|!|\?|,|,|")*(?:[\s<>()"]|$))/', 'markup_url', $body, -1, |
