osdir.com
mailing list archive
Mozy Online Backup: 2GB Free. Automatic. Secure.

Subject: Re: Minor bugs in libwww-perl-5.803 fixed in Debian - msg#00079

List: lang.perl.modules.lwp

Date: Prev Next Index Thread: Prev Next Index
Hello,

On Tue, Dec 28, 2004 at 11:29:40PM -0500, Jay Bonci wrote:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286775
>
> Fix: lib/Net/HTTP/Methods.pm (line 432):
> $chunk_len =~ s/\;.*//; # ignore potential chunk parameters
>
> (Escapes the semi)

What's wrong with semicolon not being escaped?
Please explain.

> --
> Jay Bonci <jay@xxxxxxxxx>

--
Alexey Tourbin
ALT Linux Team

Attachment: pgpt9oYxK5RjC.pgp
Description: PGP signature

Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Minor bugs in libwww-perl-5.803 fixed in Debian

Hello everyone. I've taken over maintenance of libwww-perl inside of debian (from Michael Dorman). With the release coming soon, I've updated into unstable/ the newest version of libwww-perl from CPAN. It is the same as the distribution, with two very small bugfixes, which you may wish to roll into the next version: I'd attach patches, but these are both one-character fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=283916 Fix: lib/Net/HTTP (line 35): my $s = Net::HTTP->new(Host => "www.perl.com") || die $@; (Fully quotes www.perl.com in the example) http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286775 Fix: lib/Net/HTTP/Methods.pm (line 432): $chunk_len =~ s/\;.*//; # ignore potential chunk parameters (Escapes the semi) I know these are incredibly minor, but thanks for taking the time to look at them. --Jay Bonci jaybonci@xxxxxxxxxx -- Jay Bonci <jay@xxxxxxxxx>

Next Message by Date: click to view message preview

Downloading a page compressed

Hi, Please tell me how can I use the $request->header() in order to request a page in compressed format (with gzip). Thank you. Teddy

Previous Message by Thread: click to view message preview

Minor bugs in libwww-perl-5.803 fixed in Debian

Hello everyone. I've taken over maintenance of libwww-perl inside of debian (from Michael Dorman). With the release coming soon, I've updated into unstable/ the newest version of libwww-perl from CPAN. It is the same as the distribution, with two very small bugfixes, which you may wish to roll into the next version: I'd attach patches, but these are both one-character fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=283916 Fix: lib/Net/HTTP (line 35): my $s = Net::HTTP->new(Host => "www.perl.com") || die $@; (Fully quotes www.perl.com in the example) http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286775 Fix: lib/Net/HTTP/Methods.pm (line 432): $chunk_len =~ s/\;.*//; # ignore potential chunk parameters (Escapes the semi) I know these are incredibly minor, but thanks for taking the time to look at them. --Jay Bonci jaybonci@xxxxxxxxxx -- Jay Bonci <jay@xxxxxxxxx>

Next Message by Thread: click to view message preview

Re: Minor bugs in libwww-perl-5.803 fixed in Debian

Jay Bonci <jay@xxxxxxxxx> writes: > Hello everyone. I've taken over maintenance of libwww-perl inside of > debian (from Michael Dorman). With the release coming soon, I've > updated into unstable/ the newest version of libwww-perl from CPAN. It > is the same as the distribution, with two very small bugfixes, which you > may wish to roll into the next version: > > I'd attach patches, but these are both one-character fixes > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=283916 > > Fix: lib/Net/HTTP (line 35): > my $s = Net::HTTP->new(Host => "www.perl.com") || die $@; > > (Fully quotes www.perl.com in the example) Applied. > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286775 > > Fix: lib/Net/HTTP/Methods.pm (line 432): > $chunk_len =~ s/\;.*//; # ignore potential chunk parameters > > (Escapes the semi) This fix is bogus. The semi does not make any difference, but I've now applied the following patch that I think avoids the warnings shown in that bug report. Regards, Gisle Index: lib/Net/HTTP/Methods.pm =================================================================== RCS file: /cvsroot/libwww-perl/lwp5/lib/Net/HTTP/Methods.pm,v retrieving revision 1.17 retrieving revision 1.18 diff -u -p -u -r1.17 -r1.18 --- lib/Net/HTTP/Methods.pm 15 Nov 2004 14:16:07 -0000 1.17 +++ lib/Net/HTTP/Methods.pm 30 Dec 2004 12:28:14 -0000 1.18 @@ -426,8 +426,8 @@ sub read_entity_body { die "Missing newline after chunk data: '$line'" if !defined($line) || $line ne ""; $line = my_readline($self); - die "EOF when chunk header expected" unless defined($line); } + die "EOF when chunk header expected" unless defined($line); my $chunk_len = $line; $chunk_len =~ s/;.*//; # ignore potential chunk parameters unless ($chunk_len =~ /^([\da-fA-F]+)\s*$/) {
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by