Make sure $fname will not give us any surprises with any funny characters.
PR: 256
This commit is contained in:
parent
cd9a79eae1
commit
6a0168e842
1 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,8 @@ sub check_file {
|
|||
|
||||
sub link_hash_cert {
|
||||
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 $fprint;
|
||||
$fprint =~ s/^.*=//;
|
||||
|
|
Loading…
Reference in a new issue