Subject: | wrong [url] processing |
When a link inside [ur] has ftp schema, parser returns quoted output.
With http schema, all ok. See:
$ perl test.pl http://www.example.com/
<a href="http://www.example.com/">example</a>
$ perl test.pl ftp://www.example.com/
<a href="ftp://www.example.com/">example</a>
$ cat test.pl
#!/usr/bin/perl
use strict;
use HTML::BBCode;
my $body = '[url=' . $ARGV[ 0 ] . ']example[/url]';
my $bbc = HTML::BBCode -> new();
my $parsed = $bbc -> parse( $body );
print $parsed , "\n";
$