aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libsylph/procmime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsylph/procmime.c b/libsylph/procmime.c
index c920203c..f4f55ede 100644
--- a/libsylph/procmime.c
+++ b/libsylph/procmime.c
@@ -720,6 +720,8 @@ void procmime_scan_content_type_str(const gchar *content_type,
MimeParam *param = (MimeParam *)cur->data;
if (charset && !g_ascii_strcasecmp(param->name, "charset")) {
*charset = g_strdup(param->value);
+ eliminate_parenthesis(*charset, '(', ')');
+ g_strstrip(*charset);
charset = NULL;
} else if (name && !g_ascii_strcasecmp(param->name, "name")) {
*name = g_strdup(param->value);