[Rt-commit] rtir branch, 2.6/perlcritic, updated. 2.6.0-47-g3d4f181
Alex Vandiver
alexmv at bestpractical.com
Thu Nov 17 16:45:24 EST 2011
The branch, 2.6/perlcritic has been updated
via 3d4f1814f21f8ee9f2b6f979335f6d14817713e8 (commit)
from c58d56e44fa4c8abe0703a037cc9a3a5821b7216 (commit)
Summary of changes:
html/RTIR/NoAuth/images/autohandler | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 3d4f1814f21f8ee9f2b6f979335f6d14817713e8
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Thu Nov 17 16:42:57 2011 -0500
Use three-arg open
diff --git a/html/RTIR/NoAuth/images/autohandler b/html/RTIR/NoAuth/images/autohandler
index 7018a44..93b7285 100644
--- a/html/RTIR/NoAuth/images/autohandler
+++ b/html/RTIR/NoAuth/images/autohandler
@@ -15,7 +15,7 @@ if ($file =~ /\.(gif|png|jpe?g)$/i) {
die "file not found" unless -f $file && -r _;
$r->content_type($type);
-open my $fh, "<$file" or die "couldn't open file: $!";
+open(my $fh, "<", $file) or die "couldn't open file: $!";
binmode($fh);
{
local $/ = \16384;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list