Commit aeb903a6 authored by bertagaz's avatar bertagaz
Browse files

Htpdate: fix date header regexp (refs: #10495).

It seems that some servers (sometimes) do not send their headers with
first letter uppercased, hence a lot of failures to find the date in it.
parent 357f9fbb
......@@ -146,7 +146,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/^\s*Date:\s+(.*)$/m);
last if ($date) = ($line =~ m/^\s*[D|d]ate:\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