aboutsummaryrefslogtreecommitdiff
path: root/libsylph/procmime.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-08-10 04:55:00 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-08-10 04:55:00 +0000
commit52eb02439c7668ed64521941f8f60710db2fcf76 (patch)
tree6b3e70c5a41a009de3d4184f5c24af851be27a4b /libsylph/procmime.c
parent2d7d8597781dd79031430a68c93db863e2205a8f (diff)
remove comments from Content-Type charset parameter.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2200 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/procmime.c')
-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);