summaryrefslogtreecommitdiff
path: root/AUTHORS
diff options
context:
space:
mode:
authorMichael Schwarz <michi@cloudscale.ch>2016-08-03 15:53:06 +0200
committerTim Graham <timograham@gmail.com>2016-08-12 16:35:09 -0400
commit72d541b61cd7b0a14f70242e2207fdb3f600c4d5 (patch)
treeaa90cd09c360ed41657ffca31507c8fef579c2ab /AUTHORS
parent311a8e8d505049ff5644a94e16c00246c8a43a18 (diff)
Fixed #27007 -- Handled non-UTF-8 bytes objects for text/* attachments.
The fallback logic which allows non-UTF-8 encoded files to be passed to attach_file() even when a `text/*` mime type has been specified is moved to attach(). Both functions now fall back to a content type of `application/octet-stream`. A side effect is that a file's content is decoded in memory instead of opening it in text mode and reading it into a string. Some mimetype-related logic in _create_attachment() has become obsolete as the code moved from attach_file() to attach() already handles this.
Diffstat (limited to 'AUTHORS')
-rw-r--r--AUTHORS1
1 files changed, 1 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index d0c9deffeb..4a35b84176 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -519,6 +519,7 @@ answer newbie questions, and generally made Django that much better:
michael.mcewan@gmail.com
Michael Placentra II <someone@michaelplacentra2.net>
Michael Radziej <mir@noris.de>
+ Michael Schwarz <michi.schwarz@gmail.com>
Michael Thornhill <michael.thornhill@gmail.com>
Michal Chruszcz <troll@pld-linux.org>
michal@plovarna.cz