]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Allow bitcoin scheme to URLs
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 24 Jan 2016 11:42:53 +0000 (12:42 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 24 Jan 2016 11:44:28 +0000 (12:44 +0100)
classes/File_redirection.php
lib/util.php

index 93cc640d34180f9ee12e2d44df4f7c58b2503a14..491353a214e8c91d5391619b1ed769c6a5bf89e0 100644 (file)
@@ -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':
index 20306635afd53e4e44614d5cae0e205b28c42687..14de5bed739c3a8891c8902bf5729e2024044f92 100644 (file)
@@ -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@
                 '(?:'.