From 27011ddd80e5e037b2ff9b4ad50958e2dd9bd593 Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 8 Sep 2011 19:49:45 +0000 Subject: Update to 1.113 based on a patch by Stephan Tesch. 1.113 2010-12-27 - (thanks to Yamada Masahiro) randomise multipart boundary string (security). - Numerous changes from Mark Stosberg: Port max-age support from CGI.pm, to improve compatibility and RFC-compliance Correct header comment in cookie.t It claims that is a simple copy/paste/modify from CGI.pm's test by the same name, but this has not been true for some time-- CGI::Simple added httponly tests that CGI.pm lacks, for example. Sync cookie references with CGI.pm: add reference to the newer RFC 2695 "Interface to browse cookies" looks like it was typo for "browser". HTTP is more precise. Fix awkward "CGI::Simple.pm" language. It looks like it probably originated from the CGI.pm form. "CGI::Simple" is used instead. Best Practice: eliminate indirect object notation from new(), parse() and fetch() calls Security: Fix handling of embedded malicious newlines in header values This is a direct port of the same security fix that Security: use a random MIME boundary by default in multipart_init(). This is a direct port of the same issue which was addressed in CGI.pm, preventing some kinds of potential header injection attacks. Port from CGI.pm: Fix multi-line header parsing. This fix is covered by the tests in t/header.t added in the previous patch. If you run those tests without this patch, you'll see how the headers would be malformed without this fix. Port CRLF injection prevention from CGI.pm Optimize Vars(): Don't build %hash if we aren't going to use it. Micro-optimization to Vars(): Don't call "tie" unless we need to. - Numerous changes from K. Berov: Added "+" to the mime character class. Added tests for C<$mime = $q->upload_info( $filename, 'mime' );> Fixed wrong match for mimetypes. Example: matched only 'application/vnd' instead of 'application/vnd.ms-excel'. Added "\." to the mime character class --- www/p5-CGI-Simple/Makefile | 7 ++++--- www/p5-CGI-Simple/distinfo | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'www/p5-CGI-Simple') diff --git a/www/p5-CGI-Simple/Makefile b/www/p5-CGI-Simple/Makefile index 1518b860e9e..ed8b41237ed 100644 --- a/www/p5-CGI-Simple/Makefile +++ b/www/p5-CGI-Simple/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.7 2011/08/14 16:05:46 obache Exp $ +# $NetBSD: Makefile,v 1.8 2011/09/08 19:49:45 wiz Exp $ -DISTNAME= CGI-Simple-1.112 +DISTNAME= CGI-Simple-1.113 PKGNAME= p5-${DISTNAME} -PKGREVISION= 2 SVR4_PKGNAME= p5cgs CATEGORIES= www perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=CGI/} @@ -12,6 +11,8 @@ HOMEPAGE= http://search.cpan.org/dist/CGI-Simple/ COMMENT= Simple totally OO CGI interface that is CGI.pm compliant LICENSE= ${PERL5_LICENSE} +DEPENDS+= p5-IO-stringy-[0-9]*:../../devel/p5-IO-stringy + USE_LANGUAGES= # empty PERL5_PACKLIST= auto/CGI/Simple/.packlist PERL5_MODULE_TYPE= Module::Build diff --git a/www/p5-CGI-Simple/distinfo b/www/p5-CGI-Simple/distinfo index 508436e1e88..dd2910d85d5 100644 --- a/www/p5-CGI-Simple/distinfo +++ b/www/p5-CGI-Simple/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.4 2009/06/12 07:45:56 sno Exp $ +$NetBSD: distinfo,v 1.5 2011/09/08 19:49:45 wiz Exp $ -SHA1 (CGI-Simple-1.112.tar.gz) = 9899a4efcd8d6f5ee31448297db47c8515000281 -RMD160 (CGI-Simple-1.112.tar.gz) = f61baca2afbc900bb42aca438d4deeb514de5bac -Size (CGI-Simple-1.112.tar.gz) = 100173 bytes +SHA1 (CGI-Simple-1.113.tar.gz) = 8540a0a5fcb044425b04c7c2bf2a5585f78782b6 +RMD160 (CGI-Simple-1.113.tar.gz) = 37867a79abc0f4aa319dcaf5f7d1577cd32c48b5 +Size (CGI-Simple-1.113.tar.gz) = 103884 bytes -- cgit v1.2.3