Lines 1-20
Link Here
|
1 |
--- lib/CGI2.pm.orig Sun Aug 22 13:49:49 2004 |
|
|
2 |
+++ lib/CGI2.pm Mon Nov 8 12:55:21 2004 |
3 |
@@ -30,7 +30,7 @@ |
4 |
my $dir = $wiki->config('session_dir'); |
5 |
my $limit = $wiki->config('session_limit'); |
6 |
|
7 |
- opendir(SESSION_DIR,$dir) or die $!; |
8 |
+ opendir(SESSION_DIR,$dir) or die "$!: $dir"; |
9 |
my $timeout = time() - (60 * $limit); |
10 |
while(my $entry = readdir(SESSION_DIR)){ |
11 |
if($entry =~ /^cgisess_/){ |
12 |
@@ -54,7 +54,7 @@ |
13 |
# ¥»¥Ã¥·¥ç¥ó³«»Ï¥Õ¥é¥°¤¬Î©¤Ã¤Æ¤ª¤é¤º¡¢Cookie¤Ë¥»¥Ã¥·¥ç¥óID¤¬ |
14 |
# ¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¥»¥Ã¥·¥ç¥ó¤òÀ¸À®¤·¤Ê¤¤ |
15 |
if(!defined($self->{session_cache})){ |
16 |
- if($start!=1 && $self->cookie(-name=>'CGISESSID') eq ""){ |
17 |
+ if((not defined $start or $start!=1) && $self->cookie(-name=>'CGISESSID') eq ""){ |
18 |
return undef; |
19 |
} |
20 |
my $dir = $wiki->config('session_dir'); |