Subject: | HTTP::Cookies::Netscape: parser is too rigid |
Date: | Sun, 03 Jan 2010 02:19:16 +0900 |
To: | bug-libwww-perl [...] rt.cpan.org |
From: | Ansgar Burchardt <ansgar [...] 43-1.org> |
Hi,
the attached bug report was filed by Gabor Kiss in the Debian BTS [1].
Please consider being more liberal with the magic line in
HTTP::Cookies::Netscape::load().
Regards,
Ansgar
[1] http://bugs.debian.org/563193
Subject: | Bug#563193: HTTP::Cookies::Netscape: parser is too rigid |
Date: | Thu, 31 Dec 2009 18:58:01 +0100 |
To: | Debian Bug Tracking System <submit [...] bugs.debian.org> |
From: | Gabor Kiss <kissg [...] ssg.ki.iif.hu> |
Package: libwww-perl
Version: 5.813-1
Severity: normal
HTTP::Cookies::Netscape::load() checks the first line of cookie file:
unless ($magic =~ /^\#(?: Netscape)? HTTP Cookie File/) {
However It seems to be too restrictive. wget saves cookies in file
that begins with this:
# HTTP cookie file
Following Postel's robustness principle.
the regular expression above might be:
/^\#(?: Netscape)? HTTP [cC]ookie [fF]ile/
Gabor
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (700, 'stable'), (500, 'proposed-updates')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages libwww-perl depends on:
ii libhtml-parser-perl 3.56-1+b1 A collection of modules that parse
ii libhtml-tagset-perl 3.20-2 Data tables pertaining to HTML
ii libhtml-tree-perl 3.23-1 represent and create HTML syntax t
ii liburi-perl 1.35.dfsg.1-1 Manipulates and accesses URI strin
ii netbase 4.34 Basic TCP/IP networking system
ii perl [libdigest-md5-perl 5.10.0-19lenny2 Larry Wall's Practical Extraction
Versions of packages libwww-perl recommends:
ii libcompress-zlib-perl 2.012-1 Perl module for creation and manip
ii libhtml-format-perl 2.04-2 format HTML syntax trees into text
ii libmailtools-perl 2.03-1 Manipulate email in perl programs
Versions of packages libwww-perl suggests:
ii libio-socket-ssl-perl 1.16-1+lenny1 Perl module implementing object or
-- debconf-show failed
Show quoted text
_______________________________________________
pkg-perl-maintainers mailing list
pkg-perl-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-perl-maintainers