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

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Wed Jul 26 03:51:36 EDT 2006


User:      racke
Date:      2006-07-26 07:51:35 GMT
Modified:  lib/Vend Session.pm
Log:
removed redundant mkdir in count_ip(), get_filename() takes care of that

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


rev 2.25, prev_rev 2.24
Index: Session.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Session.pm,v
retrieving revision 2.24
retrieving revision 2.25
diff -u -r2.24 -r2.25
--- Session.pm	5 Apr 2006 14:42:19 -0000	2.24
+++ Session.pm	26 Jul 2006 07:51:34 -0000	2.25
@@ -1,8 +1,8 @@
 # Vend::Session - Interchange session routines
 #
-# $Id: Session.pm,v 2.24 2006/04/05 14:42:19 mheins Exp $
+# $Id: Session.pm,v 2.25 2006/07/26 07:51:34 racke Exp $
 # 
-# Copyright (C) 2002-2003 Interchange Development Group
+# Copyright (C) 2002-2006 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
 #
 # This program was originally based on Vend 0.2 and 0.3
@@ -27,7 +27,7 @@
 require Exporter;
 
 use vars qw($VERSION);
-$VERSION = substr(q$Revision: 2.24 $, 10);
+$VERSION = substr(q$Revision: 2.25 $, 10);
 
 @ISA = qw(Exporter);
 
@@ -199,7 +199,6 @@
 	my $ip = $CGI::remote_addr;
 	$ip =~ s/\W/_/g;
 	my $dir = "$Vend::Cfg->{ScratchDir}/addr_ctr";
-	mkdir $dir, 0777 unless -d $dir;
 	my $fn = Vend::Util::get_filename($ip, 2, 1, $dir);
 	if(-f $fn) {
 		my $grace = $::Limit->{robot_expire} || 1;








More information about the interchange-cvs mailing list