提交 42b06fba 编写于 作者: R Richard Levitte

Make sure $fname will not give us any surprises with any funny characters.

PR: 256
上级 2245cd87
...@@ -100,7 +100,8 @@ sub check_file { ...@@ -100,7 +100,8 @@ sub check_file {
sub link_hash_cert { sub link_hash_cert {
my $fname = $_[0]; my $fname = $_[0];
my ($hash, $fprint) = `$openssl x509 -hash -fingerprint -noout -in "$fname"`; $fname =~ s/'/'\\''/;
my ($hash, $fprint) = `$openssl x509 -hash -fingerprint -noout -in '$fname'`;
chomp $hash; chomp $hash;
chomp $fprint; chomp $fprint;
$fprint =~ s/^.*=//; $fprint =~ s/^.*=//;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册