SMF 1.1.19 BBCode tries to find http or https in any [url], if it doesn't find it, it appends http://.
array(
'tag' => 'url',
'type' => 'unparsed_content',
'content' => '<a href="$1" target="_blank">$1</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br>\' => \'\'));
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
),
array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1" target="_blank">',
'after' => '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),
Possible solution : Adding a [crypto][/crypto] bbcode for bitcoin monero or zcash instead of using [url]
Sources/Subs.php
this would create a [crypto] bbbcode [/crypto]
[/nobbc]
array(
'tag' => 'crypto',
'type' => 'unparsed_content',
'content' => '<a href="$1">$1</a>',
'validate' => create_function(&$tag, &$data, $disabled) {
// Must start with bitcoin:, monero:, or zcash:, followed only by safe characters
if (!preg_match('~^(bitcoin|monero|zcash):[a-zA-Z0-9?:=&_\-\./\+]+$~', $data)) {
$data = '';
} else {
$data = strtr($data, array('<br>' => '', ' ' => ''));
}
},
),
array(
'tag' => 'crypto',
'type' => 'unparsed_equals',
'before' => '<a href="$1">',
'after' => '</a>',
'disallow_children' => array('email', 'ftp', 'url', 'iurl', 'crypto'),
'disabled_after' => ' ($1)',
'validate' => create_function(&$tag, &$data, $disabled) {
// Must start with bitcoin:, monero:, or zcash:, followed only by safe characters
if (!preg_match('~^(bitcoin|monero|zcash):[a-zA-Z0-9?:=&_\-\./\+]+$~', $data)) {
$data = '';
}
},
),