From 2ae816cb5527e8bd52d072d80cf5fd6c0c8a475e Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 15 May 2010 16:53:48 +0200 Subject: [PATCH] Fix: Accept leading/trailing whitespace for Last-modified pseudo header. Fixes #5. Signed-off-by: Thomas Hochstein --- yapfaq.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yapfaq.pl b/yapfaq.pl index 00ecbc6..dd1edfd 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;