From 8bf98816d3e3389940782d16638b26fabadf4dc6 Mon Sep 17 00:00:00 2001 From: weasel Date: Wed, 13 Jul 2005 14:16:42 +0000 Subject: [PATCH] More input validation fixes. Thanks jon@aslund.org git-svn-id: svn://svn.debian.org/pgp-tools/trunk@127 b513b33f-fedd-0310-b452-c3deb5f4c849 --- caff/caff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }; -- 2.39.5