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 (); |