[Pkg-privacy-commits] [msva-perl] 276/356: Allow for '0x' prefix to openpgp4fpr
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:42:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository msva-perl.
commit 523e8eb3680633d6929630764a1e28e69bacecf1
Author: Jameson Rollins <jrollins at finestructure.net>
Date: Thu Dec 30 12:47:05 2010 -0500
Allow for '0x' prefix to openpgp4fpr
Modify the regexp check of the data to return everything after a
'0x' instance as the fingerprint.
---
Crypt/Monkeysphere/MSVA.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Crypt/Monkeysphere/MSVA.pm b/Crypt/Monkeysphere/MSVA.pm
index c9a4cd6..e377808 100755
--- a/Crypt/Monkeysphere/MSVA.pm
+++ b/Crypt/Monkeysphere/MSVA.pm
@@ -711,8 +711,8 @@
my $key;
my $gpgquery;
if (lc($data->{pkc}->{type}) eq 'openpgp4fpr') {
- if ($data->{pkc}->{data} =~ /^([[:xdigit:]]+)$/) {
- $data->{pkc}->{data} = $1;
+ if ($data->{pkc}->{data} =~ /^(0x)?([[:xdigit:]]+)$/) {
+ $data->{pkc}->{data} = $2;
$fpr = $data->{pkc}->{data};
msvalog('verbose', "OpenPGP v4 fingerprint: %s\n",$fpr);
} else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/msva-perl.git
More information about the Pkg-privacy-commits
mailing list