From 6977a36e91ca2de7c3030c0b04e9a68df5d904b0 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Mon, 17 Oct 2022 23:20:30 -0500 Subject: [PATCH] Improve RFC4880 conformance --- gatekeeper.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gatekeeper.pl b/gatekeeper.pl index 2e62057..44e1c51 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -812,7 +812,8 @@ sub read_directive { # First, we find the PGP signature header. while (<$directive>) { chomp; s/\r+$//; # remove line ending, including DOS type - last if m/^-----BEGIN PGP SIGNED MESSAGE-----$/; + last if m/^-----BEGIN PGP SIGNED MESSAGE-----\s*$/; + # RFC4880 allows trailing whitespace on marker lines. } # We are now in the armor headers. while (<$directive>) { -- 2.25.1