Opened 3 years ago

Closed 3 years ago

#33096 closed Bug (fixed)

AdminEmailHandler emails blocked by gmail antivirus

Reported by: Jan Schär Owned by: Jan Schär
Component: Error reporting Version: 3.2
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Django errror/stack trace emails (django.utils.log.AdminEmailHandler) are blocked by the gmail antivirus with the following messages:

host gmail-smtp-in.l.google.com[142.250.110.26] said:
    This message was blocked because its content presents a potential
    security issue. Please visit
    https://support.google.com/mail/?p=BlockedMessage to review our
    message content and attachment content guidelines.

This is caused by the following tag in the html email:

<form action="https://dpaste.com/" name="pasteform" id="pasteform" method="post">

This worked before, so it is caused by a relatively recent change in gmail's antivirus.
The fix is simply to remove the form tag, which should not have been there anyway.

Patch: https://github.com/django/django/pull/14840

Change History (3)

comment:1 by Mariusz Felisiak, 3 years ago

Needs tests: set
Owner: set to Jan Schär
Status: newassigned
Triage Stage: UnreviewedAccepted

comment:2 by Mariusz Felisiak, 3 years ago

Needs tests: unset
Triage Stage: AcceptedReady for checkin

comment:3 by Mariusz Felisiak <felisiak.mariusz@…>, 3 years ago

Resolution: fixed
Status: assignedclosed

In 06e59d97:

Fixed #33096 -- Fixed <form> nesting in technical 500 template.

This also prevents sending <form> tags in emails.

Note: See TracTickets for help on using tickets.
Back to Top