Michael Schwarz
72d541b61c
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.
2016-08-12 16:35:09 -04:00
..
2015-12-01 08:01:34 -05:00
2016-01-11 18:05:15 -05:00
2016-06-02 11:41:49 -04:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2016-06-02 11:41:49 -04:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2016-06-02 11:41:49 -04:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2016-06-02 11:41:49 -04:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2015-12-31 14:21:29 -05:00
2015-12-31 14:21:29 -05:00
2015-12-31 14:21:29 -05:00
2015-12-01 08:01:34 -05:00
2015-07-08 15:23:03 -04:00
2015-10-29 17:28:37 -04:00
2016-06-02 11:41:49 -04:00
2016-08-09 18:46:28 +02:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2016-01-22 12:12:17 -05:00
2015-12-31 14:21:29 -05:00
2015-12-31 14:21:29 -05:00
2015-12-31 14:21:29 -05:00
2016-06-02 11:41:49 -04:00
2015-12-31 14:21:29 -05:00
2015-12-31 14:21:29 -05:00
2015-12-31 14:21:29 -05:00
2015-12-01 08:01:34 -05:00
2016-07-06 15:31:12 -04:00
2016-05-10 12:46:47 -04:00
2015-12-31 14:21:29 -05:00
2015-12-01 08:01:34 -05:00
2015-07-08 15:23:03 -04:00
2015-10-29 17:28:37 -04:00
2015-11-24 11:20:29 -05:00
2016-07-11 15:22:32 -04:00
2016-01-14 18:21:33 -05:00
2015-07-08 15:23:03 -04:00
2015-10-29 17:28:37 -04:00
2015-10-03 19:31:45 -04:00
2015-11-04 17:48:49 +01:00
2015-11-24 11:20:29 -05:00
2016-01-02 08:35:54 -05:00
2016-02-01 12:02:16 -05:00
2016-03-02 07:08:36 -05:00
2016-03-04 23:33:35 +01:00
2016-04-01 13:29:43 -04:00
2016-05-02 18:16:36 -04:00
2016-07-18 11:17:01 -04:00
2016-08-09 18:46:28 +02:00
2016-03-04 14:16:56 -05:00
2016-02-01 12:02:16 -05:00
2016-03-02 07:08:36 -05:00
2016-03-04 23:33:35 +01:00
2016-04-01 13:29:43 -04:00
2016-05-02 18:16:36 -04:00
2016-06-04 19:24:51 -04:00
2016-07-18 11:17:01 -04:00
2016-08-01 13:55:08 -04:00
2016-08-12 07:29:29 -04:00
2016-08-12 13:59:01 -04:00
2016-08-05 10:52:30 -04:00
2016-08-12 16:35:09 -04:00
2016-08-01 14:57:10 -04:00
2016-07-18 15:19:35 -04:00