]> granicus.if.org Git - mutt/commitdiff
Allow UTF-8 charset to be misspelled as "utf8"
authorRocco Rutte <pdmef@gmx.net>
Fri, 11 Jul 2008 09:33:13 +0000 (11:33 +0200)
committerRocco Rutte <pdmef@gmx.net>
Fri, 11 Jul 2008 09:33:13 +0000 (11:33 +0200)
ChangeLog
charset.c

index 8aab3bde6ded18707899c2a4ac35b26a51df5b55..bdec4ed9e37cc8ce5c9b78894c76991b147b572f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+2008-07-11 08:47 +0200  Rocco Rutte  <pdmef@gmx.net>  (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  <pdmef@gmx.net>  (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  <agriffis@n01se.net>  (6244eefaea64)
 
        * headers.c: Remove completely wrong comment regarding in-reply-to and
index 7cb9da51ce309500e76dd4816b12046485de78dd..30d157e2466a353d1b46da44920dfcbe06658833 100644 (file)
--- 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;