Skip to content

Commit

Permalink
made Mojo::Asset::File slightly more secure
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 19, 2013
1 parent eb3014f commit 54df770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Asset/File.pm
Expand Up @@ -17,7 +17,7 @@ has handle => sub {
my $handle = IO::File->new;
my $path = $self->path;
if (defined $path && -f $path) {
$handle->open("< $path") or croak qq{Can't open file "$path": $!};
$handle->open($path, '<') or croak qq{Can't open file "$path": $!};
return $handle;
}

Expand Down

0 comments on commit 54df770

Please sign in to comment.