diff -Nur -x '*.orig' -x '*.rej' CGI-Persistent-0.22/lib/CGI/Persistent.pm mezzanine_patched_CGI-Persistent-0.22/lib/CGI/Persistent.pm --- CGI-Persistent-0.22/lib/CGI/Persistent.pm 2007-02-13 16:22:27.000000000 -0500 +++ mezzanine_patched_CGI-Persistent-0.22/lib/CGI/Persistent.pm 2007-02-13 16:03:12.000000000 -0500 @@ -22,16 +22,16 @@ my ( $class, $dope, $id ) = @_ ; $dope = "." unless $dope; my $cgi = new CGI; # print $cgi->header (); - my $fn = basename($cgi->param( '.id' ) || $id || ''); + my $fn = fileparse($cgi->param( '.id' ) || $id || ''); unless ( $fn ) { my $po = new Persistence::Object::Simple ( __Dope => $dope ); - $cgi->append( -name => '.id', -values => basename $po->{ __Fn } ); - $fn = basename $po->{ __Fn }; undef $po; + $fn = fileparse $po->{ __Fn }; + $cgi->append( -name => '.id', -values => $fn ); + undef $po; } - my $po = new Persistence::Object::Simple __Fn => - join "/", ($dope,$fn); + my $po = new Persistence::Object::Simple __Fn => "$dope/$fn"; $po->{ __DOPE } = undef; $po->{sessiondir} = $dope; my @names = $cgi->param ();