From b16eb1aec41bc80a9f09f63fdd217433145632dc Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 15 May 2010 16:32:58 +0200 Subject: [PATCH] Fix: Accept leading/trailing whitespace for Last-modified pseudo header. Signed-off-by: Thomas Hochstein --- yapfaq.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yapfaq.pl b/yapfaq.pl index 2b5fe2f..6e3032c 100644 --- a/yapfaq.pl +++ b/yapfaq.pl @@ -263,7 +263,7 @@ sub postfaq { s/\r//; push (@Body, $_), next if $InRealBody; $InRealBody++ if /^$/; - $LastModified = $1 if /^Last-modified: (\S+)$/i; + $LastModified = $1 if /^Last-modified:\s*(\S+)\s*$/i; push @Body, $_; } close FH;