/[smeserver]/rpms/perl-CGI-Persistent/sme7/perl-CGI-Persistent-0.22-fileparse.patch
ViewVC logotype

Contents of /rpms/perl-CGI-Persistent/sme7/perl-CGI-Persistent-0.22-fileparse.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sun Nov 25 23:13:29 2007 UTC (16 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Import on branch sme7 of package perl-CGI-Persistent-1.00-2.0.1.el4.sme.src.rpm

1 diff -Nur -x '*.orig' -x '*.rej' CGI-Persistent-0.22/lib/CGI/Persistent.pm mezzanine_patched_CGI-Persistent-0.22/lib/CGI/Persistent.pm
2 --- CGI-Persistent-0.22/lib/CGI/Persistent.pm 2007-02-13 16:22:27.000000000 -0500
3 +++ mezzanine_patched_CGI-Persistent-0.22/lib/CGI/Persistent.pm 2007-02-13 16:03:12.000000000 -0500
4 @@ -22,16 +22,16 @@
5 my ( $class, $dope, $id ) = @_ ;
6 $dope = "." unless $dope;
7 my $cgi = new CGI; # print $cgi->header ();
8 - my $fn = basename($cgi->param( '.id' ) || $id || '');
9 + my $fn = fileparse($cgi->param( '.id' ) || $id || '');
10
11 unless ( $fn ) {
12 my $po = new Persistence::Object::Simple ( __Dope => $dope );
13 - $cgi->append( -name => '.id', -values => basename $po->{ __Fn } );
14 - $fn = basename $po->{ __Fn }; undef $po;
15 + $fn = fileparse $po->{ __Fn };
16 + $cgi->append( -name => '.id', -values => $fn );
17 + undef $po;
18 }
19
20 - my $po = new Persistence::Object::Simple __Fn =>
21 - join "/", ($dope,$fn);
22 + my $po = new Persistence::Object::Simple __Fn => "$dope/$fn";
23 $po->{ __DOPE } = undef;
24 $po->{sessiondir} = $dope;
25 my @names = $cgi->param ();

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed