[interchange-cvs] interchange - heins modified lib/Vend/Server.pm
interchange-core@icdevgroup.org
interchange-core@icdevgroup.org
Mon Apr 7 10:23:59 2003
User: heins
Date: 2003-04-07 14:15:19 GMT
Modified: lib/Vend Server.pm
Log:
* Don't honor $Global::Mall if CookieDomain set.
Revision Changes Path
2.31 +6 -6 interchange/lib/Vend/Server.pm
rev 2.31, prev_rev 2.30
Index: Server.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Server.pm,v
retrieving revision 2.30
retrieving revision 2.31
diff -u -r2.30 -r2.31
--- Server.pm 24 Mar 2003 10:57:38 -0000 2.30
+++ Server.pm 7 Apr 2003 14:15:19 -0000 2.31
@@ -1,6 +1,6 @@
# Vend::Server - Listen for Interchange CGI requests as a background server
#
-# $Id: Server.pm,v 2.30 2003/03/24 10:57:38 racke Exp $
+# $Id: Server.pm,v 2.31 2003/04/07 14:15:19 mheins Exp $
#
# Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
#
@@ -25,7 +25,7 @@
package Vend::Server;
use vars qw($VERSION);
-$VERSION = substr(q$Revision: 2.30 $, 10);
+$VERSION = substr(q$Revision: 2.31 $, 10);
use POSIX qw(setsid strftime);
use Vend::Util;
@@ -535,13 +535,13 @@
my @domains;
@domains = ('');
+ my @paths;
+ @paths = ('/');
+
if ($Vend::Cfg->{CookieDomain}) {
@domains = split /\s+/, $Vend::Cfg->{CookieDomain};
}
-
- my @paths;
- @paths = ('/');
- if($Global::Mall) {
+ elsif($Global::Mall) {
my $ref = $Global::Catalog{$Vend::Cat};
@paths = ($ref->{script});
push (@paths, @{$ref->{alias}}) if defined $ref->{alias};