commit cd6aeb4: [Minor] Add fallback
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Dec 23 18:28:09 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-12-23 18:27:08 +0000
URL: https://github.com/rspamd/rspamd/commit/cd6aeb455943ee63e15f3032a5cf44f69538afba (HEAD -> master)
[Minor] Add fallback
---
src/libmime/mime_encoding.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libmime/mime_encoding.c b/src/libmime/mime_encoding.c
index 990eda62e..3f79465e4 100644
--- a/src/libmime/mime_encoding.c
+++ b/src/libmime/mime_encoding.c
@@ -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;
More information about the Commits
mailing list