mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Make sure $fname will not give us any surprises with any funny characters.
PR: 256
This commit is contained in:
parent
2245cd87d4
commit
42b06fbaca
@ -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/^.*=//;
|
||||||
|
Loading…
Reference in New Issue
Block a user