diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-03-31 03:20:48 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-03-31 03:20:48 +0800 |
commit | fba9fe0f499335beb976e82bcc39ab6d9e99d66d (patch) | |
tree | a2c74fb6af7c11df41700764f249d01ba70ea647 /camel | |
parent | 49827539cbca11048eac4dc19082acd8e9c8974a (diff) | |
download | gsoc2013-evolution-fba9fe0f499335beb976e82bcc39ab6d9e99d66d.tar.gz gsoc2013-evolution-fba9fe0f499335beb976e82bcc39ab6d9e99d66d.tar.zst gsoc2013-evolution-fba9fe0f499335beb976e82bcc39ab6d9e99d66d.zip |
Use header_decode_text() rather than rfc2047_decode_word() to decode the
2004-03-30 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (header_decode_param): Use
header_decode_text() rather than rfc2047_decode_word() to decode
the brokenly rfc2047 encoded param value string in case it is
actually made up of multiple rfc2047 encoded words. Thanks to
Andrei Nigmatulin for the fix.
svn path=/trunk/; revision=25243
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 8 | ||||
-rw-r--r-- | camel/camel-mime-utils.c | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index a6bc6dd764..6882c8d58a 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,11 @@ +2004-03-30 Jeffrey Stedfast <fejj@ximian.com> + + * camel-mime-utils.c (header_decode_param): Use + header_decode_text() rather than rfc2047_decode_word() to decode + the brokenly rfc2047 encoded param value string in case it is + actually made up of multiple rfc2047 encoded words. Thanks to + Andrei Nigmatulin for the fix. + 2004-03-30 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_store_get_folder_info): added some debug to diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 6d1f6c3b46..13e9d815ef 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -1996,8 +1996,7 @@ header_decode_param (const char **in, char **paramp, char **valuep, int *is_rfc2 */ char *val; - val = rfc2047_decode_word (value, strlen (value)); - if (val) { + if ((val = header_decode_text (value, strlen (value), NULL))) { g_free (value); value = val; } |