Changeset 13811
- Timestamp:
- 01/24/12 09:31:40 (4 weeks ago)
- Location:
- trunk/core/lib/Foswiki
- Files:
-
- 3 edited
-
Templates.pm (modified) (3 diffs)
-
Users/ApacheHtpasswdUser.pm (modified) (1 diff)
-
Users/HtPasswdUser.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/lib/Foswiki/Templates.pm
r13537 r13811 612 612 $tmpl_cachedir . '/' . $name . '__' . $skins . '__' . $web . '.tmpl' ); 613 613 614 unless ( open( FILE, ">$filename") ) {614 unless ( open( my $file, '>', $filename ) ) { 615 615 die "Can't create file $filename - $!\n" if DEBUG; 616 616 print STDERR "Can't create file $filename - $!\n"; … … 618 618 return; 619 619 } 620 print FILE$tmplText;621 close( FILE);620 print $file $tmplText; 621 close($file); 622 622 } 623 623 … … 634 634 635 635 if ( -e $filename ) { 636 open( IN_FILE, "<$filename" ) ||return;636 open( my $in_file, '<', $filename ) or return; 637 637 local $/ = undef; # set to read to EOF 638 my $data = < IN_FILE>;639 close( IN_FILE);638 my $data = <$in_file>; 639 close($in_file); 640 640 return $data; 641 641 } -
trunk/core/lib/Foswiki/Users/ApacheHtpasswdUser.pm
r13796 r13811 122 122 123 123 # We expect the path to exist and be writable. 124 return 0 if ( -e $path && -f $path && -w $path);124 return 0 if ( -e $path && -f _ && -w _ ); 125 125 126 126 # Otherwise, log a problem. -
trunk/core/lib/Foswiki/Users/HtPasswdUser.pm
r13796 r13811 163 163 164 164 # We expect the path to exist and be writable. 165 return 0 if ( -e $path && -f $path && -w $path);165 return 0 if ( -e $path && -f _ && -w _ ); 166 166 167 167 # Otherwise, log a problem. … … 228 228 && -e $Foswiki::cfg{Htpasswd}{FileName} ) 229 229 { 230 my $fileTime = ( stat( $Foswiki::cfg{Htpasswd}{FileName}) )[9];230 my $fileTime = ( stat(_) )[9]; 231 231 $this->ClearCache() 232 232 if ( $fileTime > $this->PasswordTimestamp() );
Note: See TracChangeset
for help on using the changeset viewer.
