From 347551c2a1bc78b3a5886be6adde0c8151001acc Mon Sep 17 00:00:00 2001 From: Stefan Sinca Date: Thu, 21 Sep 2017 17:23:23 +0300 Subject: [PATCH] Fixed #28508 -- Set the foreground color to black in CSRF and 404 error templates. --- django/views/csrf.py | 2 +- django/views/templates/technical_404.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/views/csrf.py b/django/views/csrf.py index 0689df84e4..b1c8d25235 100644 --- a/django/views/csrf.py +++ b/django/views/csrf.py @@ -23,7 +23,7 @@ CSRF_FAILURE_TEMPLATE = """ html * { padding:0; margin:0; } body * { padding:10px 20px; } body * * { padding:0; } - body { font:small sans-serif; background:#eee; } + body { font:small sans-serif; background:#eee; color:#000; } body>div { border-bottom:1px solid #ddd; } h1 { font-weight:normal; margin-bottom:.4em; } h1 span { font-size:60%; color:#666; font-weight:normal; } diff --git a/django/views/templates/technical_404.html b/django/views/templates/technical_404.html index 0bf5fd3cd0..bc0858bba2 100644 --- a/django/views/templates/technical_404.html +++ b/django/views/templates/technical_404.html @@ -8,7 +8,7 @@ html * { padding:0; margin:0; } body * { padding:10px 20px; } body * * { padding:0; } - body { font:small sans-serif; background:#eee; } + body { font:small sans-serif; background:#eee; color:#000; } body>div { border-bottom:1px solid #ddd; } h1 { font-weight:normal; margin-bottom:.4em; } h1 span { font-size:60%; color:#666; font-weight:normal; }