]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add fallback
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Dec 2020 18:27:08 +0000 (18:27 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Dec 2020 18:27:08 +0000 (18:27 +0000)
src/libmime/mime_encoding.c

index 990eda62e726c5d8e55c5199ec1e6e7acf736f4f..3f79465e4e5f099501d590aa7ae1aa0bab247d99 100644 (file)
@@ -670,7 +670,8 @@ rspamd_mime_charset_find_by_content_maybe_split (const gchar *in, gsize inlen)
                                return c3;
                        }
 
-                       /* All charsets are distinct */
+                       /* All charsets are distinct. Use the one from the top */
+                       return c1;
                }
 
                return NULL;