[Jifty-commit] r1915 - in jifty/trunk: t/TestApp/t

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Sep 1 18:07:47 EDT 2006


Author: schwern
Date: Fri Sep  1 18:07:46 2006
New Revision: 1915

Added:
   jifty/trunk/t/TestApp/t/regex_meta_in_path_info.t
Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/Makefile.PL

Log:
 r17776 at windhund:  schwern | 2006-09-01 18:07:34 -0400
 CGI.pm 3.17 (and possibly earier) had a bug where regex metacharacters in
 the PATH_INFO would cause it to puke.  We now depend on CGI 3.19 which fixed
 that bug.


Modified: jifty/trunk/Makefile.PL
==============================================================================
--- jifty/trunk/Makefile.PL	(original)
+++ jifty/trunk/Makefile.PL	Fri Sep  1 18:07:46 2006
@@ -1,13 +1,14 @@
 use inc::Module::Install 0.46;
 name('Jifty');
 license('Perl');
-requires(perl => '5.8.3');  
+requires(perl => '5.8.3');
 requires('App::CLI' => 0.03 ); # App::CLI::Command::Help App::CLI::Command
 requires('Cache::Cache'); #Cache::FileCache
 requires('Calendar::Simple');
 requires('Class::Accessor'); # Class::Accessor::Fast
 requires('Class::Container');
 requires('Class::Data::Inheritable');
+requires('CGI' => '3.19');
 requires('CGI::Cookie::Splitter');
 requires('Crypt::CBC');
 requires('Crypt::Rijndael');

Added: jifty/trunk/t/TestApp/t/regex_meta_in_path_info.t
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp/t/regex_meta_in_path_info.t	Fri Sep  1 18:07:46 2006
@@ -0,0 +1,21 @@
+#!/usr/bin/env perl
+
+# CGI.pm 3.17 (and maybe earlier) would puke if you had regex metacharacters
+# in the PATH_INFO.
+
+use warnings;
+use strict;
+
+use lib 't/lib';
+
+use Jifty::SubTest;
+use Jifty::Test tests => 2;
+use Jifty::Test::WWW::Mechanize;
+
+my $server  = Jifty::Test->make_server;
+my $URL     = $server->started_ok;
+my $mech    = Jifty::Test::WWW::Mechanize->new();
+
+$mech->get("$URL/*****");
+is( $mech->status, '404', 'regex metachars in URL does not cause error' );
+


More information about the Jifty-commit mailing list