Commit 9578eb1f authored by Tails developers's avatar Tails developers

Import new htpdate (at commit 8451a18).

In header-only mode, headers lines are prefixed with spaces.
parent b0d22e6c
......@@ -160,7 +160,7 @@ sub newestDateHeader {
chomp $line;
# empty line == we leave the headers to go into the content
last if $line eq '';
last if ($date) = ($line =~ m/^Date:\s+(.*)$/m);
last if ($date) = ($line =~ m/^\s*Date:\s+(.*)$/m);
close $file_h;
if (defined $date) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment