Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify test case to include newline characters in TestCase summary
these will end up in email Subject: header and that causes a traceback: django/core/mail/message.py in forbid_multi_line_headers at line 60: def forbid_multi_line_headers(name, val, encoding): """Forbid multi-line headers to prevent header injection.""" encoding = encoding or settings.DEFAULT_CHARSET val = str(val) # val may be lazy if "\n" in val or "\r" in val: raise BadHeaderError( "Header values can't contain newlines (got %r for header %r)" % (val, name) )
- Loading branch information