Skip Menu |

This queue is for tickets about the HTML-BBCode CPAN distribution.

Report information
The Basics
Id: 33542
Status: resolved
Priority: 0/
Queue: HTML-BBCode

People
Owner: Nobody in particular
Requestors: eugenek [...] 45-98.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.03
Fixed in: (no value)



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&amp;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"; $
(Finally) fixed. Version 2.04 is being uploaded to CPAN now. For the impatient: http://menno.b10m.net/perl/dists/HTML-BBCode-2.04.tar.gz -- B10m