Version 1.2.1. Allow the final line of the signature to not contain any
equal signs.
This commit is contained in:
parent
bf800f5ea9
commit
1542344316
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
#! /usr/bin/perl -w
|
||||
# written April 1996, tale@uunet.uu.net (David C Lawrence)
|
||||
# Version 1.2
|
||||
# Version 1.2.1
|
||||
|
||||
$pgp = '/usr/local/bin/pgp';
|
||||
# if you keep your keyring somewhere that is not the default used by pgp,
|
||||
|
@ -44,7 +44,7 @@ exit 1 unless $_ = $header{$pgpheader}; # no signature
|
|||
$sep = "\n[ \t]+";
|
||||
$r64 = '[a-zA-Z0-9+/]';
|
||||
&fail("$0: $pgpheader not in expected format\n")
|
||||
unless /^(\S+) (\S+)(($sep$r64{64})+$sep$r64+=?=$sep=$r64{4})$/;
|
||||
unless /^(\S+) (\S+)(($sep$r64{64})+$sep$r64+=?=?$sep=$r64{4})$/;
|
||||
|
||||
($version, $signed_headers, $signature) = ($1, $2, $3);
|
||||
$signature =~ s/\n[ \t]+/\n/g;
|
||||
|
|
Loading…
Reference in a new issue