From 6a93958ad45a3662bc61579b43232b733762cb18 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 7 May 2018 19:20:28 +0200 Subject: [PATCH] Fix call to parse_http_date Incorrectly merged as parse_http_date() in fb51d9d9, since the code here used parse_http_date_safe() there was a missing import. Insead, use the _safe() version here as well. --- django/archives/mailarchives/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/archives/mailarchives/views.py b/django/archives/mailarchives/views.py index e52c221..fc09b65 100644 --- a/django/archives/mailarchives/views.py +++ b/django/archives/mailarchives/views.py @@ -742,7 +742,7 @@ def dynamic_css(request, css): matches = re.match(r"^([^;]+)(; length=([0-9]+))?$", request.META.get('HTTP_IF_MODIFIED_SINCE'), re.IGNORECASE) - header_mtime = parse_http_date(matches.group(1)) + header_mtime = parse_http_date_safe(matches.group(1)) # We don't do length checking, just the date if int(latestmod) <= header_mtime: return HttpResponseNotModified(content_type='text/css') -- 2.39.5