discourse/spec
Claus Strasburger e9bb9a167b Fix reply-by-mail for 8-bit transfer encodings
The mail class seems to handle mails sent with Content-Transfer-Encoding: 8bit
somewhat weirdly: It decodes them (to utf-8), changes the raw source to base64,
and does not modify the Content-Type:charset= header.

This leads to Discourse trying the message encoding (in my example ISO-8859-1)
first, and if that does not contain any unparseable characters, it uses that.
Sadly, in ISO-8859-1, every byte sequence is valid.

Fix this by always trying to decode as UTF-8 first. The probability of someone
using another encoding that cleanly (but wrongly) decodes as UTF-8 should be
fairly low.
2017-04-30 23:30:40 +02:00
..
components Fix reply-by-mail for 8-bit transfer encodings 2017-04-30 23:30:40 +02:00
controllers FIX: Raise right response when post_action does not exist. 2017-04-27 17:29:53 +08:00
fabricators FEATURE: Disable minimum post length check when in PM with non human users. 2017-04-27 16:00:22 +08:00
fixtures Fix reply-by-mail for 8-bit transfer encodings 2017-04-30 23:30:40 +02:00
helpers FEATURE: replace emoji with unicode in title and description meta tags 2017-02-22 16:24:13 -05:00
integration correct specs 2017-04-14 15:25:34 -04:00
integrity FIX: i18n integrity specs 2017-02-24 11:35:33 +01:00
jobs Change Anniversary badge to be multiple grant, once per year 2017-04-28 14:22:54 -04:00
mailers FEATURE: secure_email site setting to prevent data going out in email 2017-04-26 13:05:56 -04:00
models FEATURE: Disable minimum post length check when in PM with non human users. 2017-04-27 16:00:22 +08:00
phantom_js Dump the page's content as well on failure. 2017-01-17 18:40:46 +08:00
serializers FIX: Topic title should be included in post webhook payload. 2017-04-21 10:04:21 +08:00
services FEATURE: Native theme support 2017-04-12 10:53:49 -04:00
support No need for special helper to reset SiteSetting state. 2017-01-28 10:55:49 +08:00
tasks Suppress console output when running RSpec 2017-01-28 11:04:47 +05:30
views/omniauth_callbacks FIX: Weird spec 2016-06-10 11:32:32 -04:00
discourse_tagging_spec.rb FIX: prevent creation of tags with invalid characters 2016-10-12 15:44:36 -04:00
rails_helper.rb Support Ruby 2.4. 2017-04-15 12:29:00 +08:00