From f7e44fbf38f277008f69bfc74d56947a6aff9d5c Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Fri, 11 Jul 2008 11:33:13 +0200 Subject: [PATCH] Allow UTF-8 charset to be misspelled as "utf8" --- ChangeLog | 20 ++++++++++++++++++++ charset.c | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8aab3bde..bdec4ed9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,23 @@ +2008-07-11 08:47 +0200 Rocco Rutte (934a802dff7f) + + * mutt_ssl.c: Verify hostname in (Open)SSL certificate validation + + This is based on the patch by gkloepfer attached to #3087 but passes + the proper connection as argument (avoiding adding hostname to + struct sslsockdata) and validates the hostname even in case OpenSSL + cannot find the local issuer certificate. GnuTLS already supports + hostname checking. Closes #3087. + +2008-07-10 22:02 +0200 Rocco Rutte (b9ac445b035b) + + * ChangeLog, hcache.c: Prevent some pointers of 'struct body' being + saved to hcache + + This addresses the hcache safety issue but maybe doesn't fix it + completely, see #2942. This also prevents mutt from crashing when + using a hcache that was synced when syncing the mailbox (updating + changed and fully-parsed messages). + 2008-07-10 21:46 +0200 Aron Griffis (6244eefaea64) * headers.c: Remove completely wrong comment regarding in-reply-to and diff --git a/charset.c b/charset.c index 7cb9da51..30d157e2 100644 --- a/charset.c +++ b/charset.c @@ -245,7 +245,7 @@ void mutt_canonical_charset (char *dest, size_t dlen, const char *name) char *p; char scratch[LONG_STRING]; - if (!ascii_strcasecmp (name, "utf-8")) + if (!ascii_strcasecmp (name, "utf-8") || !ascii_strcasecmp (name, "utf8")) { strfcpy (dest, "utf-8", dlen); return; -- 2.40.0