Commit 42b06fba authored by Richard Levitte's avatar Richard Levitte
Browse files

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

PR: 256
parent 2245cd87
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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/^.*=//;