/[smeserver]/rpms/perl-CGI-Persistent/sme8/perl-CGI-Persistent-0.22.patch.2002090400
ViewVC logotype

Contents of /rpms/perl-CGI-Persistent/sme8/perl-CGI-Persistent-0.22.patch.2002090400

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


Revision 1.1 - (show annotations) (download)
Tue Jun 12 20:16:02 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: perl-CGI-Persistent-0_22-8_el5_sme
Import on branch sme8 of package perl-CGI-Persistent-0.22-8.el5.sme.src.rpm

1 --- CGI-Persistent-0.22/lib/CGI/Persistent.pm.orig Mon Sep 27 12:58:32 2004
2 +++ CGI-Persistent-0.22/lib/CGI/Persistent.pm Mon Sep 27 12:58:32 2004
3 @@ -22,7 +22,6 @@
4 my ( $class, $dope, $id ) = @_ ;
5 $dope = "." unless $dope;
6 my $cgi = new CGI; # print $cgi->header ();
7 - $cgi->{sessiondir} = dirname($id) if $id;
8 my $fn = basename($cgi->param( '.id' ) || $id);
9
10 unless ( $fn ) {
11 @@ -32,8 +31,9 @@
12 }
13
14 my $po = new Persistence::Object::Simple __Fn =>
15 - join "/", ($cgi->{sessiondir},$fn);
16 + join "/", ($dope,$fn);
17 $po->{ __DOPE } = undef;
18 + $po->{sessiondir} = $dope;
19 my @names = $cgi->param ();
20
21 my $st = $cgi->param('.sailthru');
22 @@ -43,9 +43,11 @@
23
24 foreach $key ( keys %$po ) {
25 $cgi->param( -name => $key, -values => $po->{$key} )
26 - unless ( grep /$key/, @names ) || $key eq "__Fn"
27 + unless ( grep /$key/, @names ) || $key eq "__Fn";
28 }
29
30 + $cgi->{sessiondir} = $po->{sessiondir};
31 +
32 $po->commit ();
33 return bless $cgi, $class;
34

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