Subject: | [url] quotes parameters delimiter |
Hello. Thanks for prev fixes :)
When i use url with parameters inside bb [url] tag, the result is such
that whole query string goes as one parameter. See:
$ perl test.pl 'ftp://www.example.com/?a=b&c=d'
<a href="ftp://www.example.com/?a%3Db%26amp%3Bc%3Dd">example</a>
$
If I pass pre-quoted url, result is the same:
$ perl test.pl 'ftp://www.example.com/?a=b&c=d'
<a href="ftp://www.example.com/?a%3Db%26amp%3Bc%3Dd">example</a>
$
Correct behavior is not to quote = & ; chars, i believe.. Test script:
$ 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";
$