[interchange-cvs] interchange - heins modified lib/Vend/Session.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Wed Sep 20 14:52:07 EDT 2006


User:      heins
Date:      2006-09-20 18:52:06 GMT
Modified:  lib/Vend Session.pm
Log:
* Autovivify length to prevent problems when generating sessions outside
  of catalogs.

Revision  Changes    Path
2.27      +3 -3      interchange/lib/Vend/Session.pm


rev 2.27, prev_rev 2.26
Index: Session.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Session.pm,v
retrieving revision 2.26
retrieving revision 2.27
diff -u -r2.26 -r2.27
--- Session.pm	20 Sep 2006 18:42:40 -0000	2.26
+++ Session.pm	20 Sep 2006 18:52:06 -0000	2.27
@@ -1,6 +1,6 @@
 # Vend::Session - Interchange session routines
 #
-# $Id: Session.pm,v 2.26 2006/09/20 18:42:40 mheins Exp $
+# $Id: Session.pm,v 2.27 2006/09/20 18:52:06 mheins Exp $
 # 
 # Copyright (C) 2002-2006 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -27,7 +27,7 @@
 require Exporter;
 
 use vars qw($VERSION);
-$VERSION = substr(q$Revision: 2.26 $, 10);
+$VERSION = substr(q$Revision: 2.27 $, 10);
 
 @ISA = qw(Exporter);
 
@@ -241,7 +241,7 @@
 	open_session();
     for (;;) {
 		unless (defined $seed) {
-			$Vend::SessionID = random_string($::Limit->{session_id_length});
+			$Vend::SessionID = random_string($::Limit->{session_id_length} ||= 8);
 			undef $Vend::CookieID;
 		}
 		undef $seed;








More information about the interchange-cvs mailing list