From: weasel Date: Wed, 13 Jul 2005 14:16:42 +0000 (+0000) Subject: More input validation fixes. Thanks jon@aslund.org X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=8bf98816d3e3389940782d16638b26fabadf4dc6;p=pgp-tools.git More input validation fixes. Thanks jon@aslund.org git-svn-id: svn://svn.debian.org/pgp-tools/trunk@127 b513b33f-fedd-0310-b452-c3deb5f4c849 --- diff --git a/caff/caff b/caff/caff index e4458a3..bd15a77 100755 --- a/caff/caff +++ b/caff/caff @@ -715,7 +715,7 @@ usage(\*STDERR, 1) unless scalar @ARGV >= 1; if ($params->{'local-user'}) { $USER = $params->{'local-user'}; $USER =~ s/^0x//i; - unless ($USER =~ /^([A-Z0-9]{8}|[A-Z0-9]{16}|[A-Z0-9]{40})$/i) { + unless ($USER =~ /^([A-F0-9]{8}|[A-F0-9]{16}|[A-F0-9]{40})$/i) { print STDERR "-u $USER is not a keyid.\n"; usage(\*STDERR, 1); }; @@ -724,7 +724,7 @@ if ($params->{'local-user'}) { for my $keyid (@ARGV) { $keyid =~ s/^0x//i; - unless ($keyid =~ /^([A-Z0-9]{8}|[A-Z0-9]{16}||[A-Z0-9]{40})$/i) { + unless ($keyid =~ /^([A-F0-9]{8}|[A-F0-9]{16}||[A-F0-9]{40})$/i) { print STDERR "$keyid is not a keyid.\n"; usage(\*STDERR, 1); };