From a8ae57cb93783b7a786a821d484cd106820f8517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=A4nzer?= Date: Tue, 19 Jul 2011 23:23:56 +0200 Subject: bug 911: Fix the regex to parse the output from gpg, sigclass seems to be a hexadecimal number in newer versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Tänzer --- CommModule/client.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CommModule/client.pl b/CommModule/client.pl index 7b417d1..690d947 100755 --- a/CommModule/client.pl +++ b/CommModule/client.pl @@ -540,7 +540,7 @@ sub OpenPGPextractExpiryDate ($) print OUT $_; unless ($r) { - if ( /^\s*version \d+, created (\d+), md5len 0, sigclass \d+\s*$/ ) + if ( /^\s*version \d+, created (\d+), md5len 0, sigclass (?:0x[0-9a-fA-F]+|\d+)\s*$/ ) { SysLog "Detected CTS: $1\n"; $cts = int($1); -- cgit v1.2.1