diff options
| author | Maxime Lorant <maxime.lorant@gmail.com> | 2015-08-23 20:54:15 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-08-24 19:35:49 -0400 |
| commit | 4ce433e811763f29c32e0553fe1e0070fd14c6a2 (patch) | |
| tree | 21bf711c2c7f5fe80479dd7edb4e3c52bd1a142f /docs | |
| parent | d3fdaf907db6a5be4d0391532d7e65688c19e851 (diff) | |
Fixed #25302 -- Prevented BrokenLinkEmailsMiddleware from reporting 404s when Referer = URL.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/error-reporting.txt | 11 | ||||
| -rw-r--r-- | docs/releases/1.9.txt | 5 |
2 files changed, 14 insertions, 2 deletions
diff --git a/docs/howto/error-reporting.txt b/docs/howto/error-reporting.txt index be5634e48b..d27f734398 100644 --- a/docs/howto/error-reporting.txt +++ b/docs/howto/error-reporting.txt @@ -61,8 +61,15 @@ not found" errors). Django sends emails about 404 errors when: If those conditions are met, Django will email the users listed in the :setting:`MANAGERS` setting whenever your code raises a 404 and the request has -a referer. (It doesn't bother to email for 404s that don't have a referer -- -those are usually just people typing in broken URLs or broken Web 'bots). +a referer. It doesn't bother to email for 404s that don't have a referer -- +those are usually just people typing in broken URLs or broken Web bots. It also +ignores 404s when the referer is equal to the requested URL, since this +behavior is from broken Web bots too. + +.. versionchanged:: 1.9 + + In older versions, 404s were not ignored when the referer was equal to the + requested URL. .. note:: diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt index 54323c09f7..6460b8a7bc 100644 --- a/docs/releases/1.9.txt +++ b/docs/releases/1.9.txt @@ -551,6 +551,11 @@ Requests and Responses :class:`~django.http.JsonResponse` to allow passing keyword arguments to the ``json.dumps()`` call used to generate the response. +* The :class:`~django.middleware.common.BrokenLinkEmailsMiddleware` now + ignores 404s when the referer is equal to the requested URL. To circumvent + the empty referer check already implemented, some Web bots set the referer to + the requested URL. + Tests ^^^^^ |
