From b424dde765167bac8f37d01f0797cf7a10a3fff2 Mon Sep 17 00:00:00 2001 From: Colin Leroy Date: Sat, 8 Oct 2005 19:04:14 +0000 Subject: [PATCH] 2005-10-08 [colin] 1.9.15cvs23 * src/procmime.c Fix bug #828 (Ignoring headers with spaces around = sign) --- ChangeLog-gtk2.claws | 5 +++++ PATCHSETS | 1 + configure.ac | 2 +- src/procmime.c | 14 ++++++++++++++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ChangeLog-gtk2.claws b/ChangeLog-gtk2.claws index 69a27b0de..bd169512a 100644 --- a/ChangeLog-gtk2.claws +++ b/ChangeLog-gtk2.claws @@ -1,3 +1,8 @@ +2005-10-08 [colin] 1.9.15cvs23 + + * src/procmime.c + Fix bug #828 (Ignoring headers with spaces around = sign) + 2005-10-08 [colin] 1.9.15cvs22 * src/export.c diff --git a/PATCHSETS b/PATCHSETS index 70e56f741..d2939cdb9 100644 --- a/PATCHSETS +++ b/PATCHSETS @@ -859,3 +859,4 @@ ( cvs diff -u -r 1.1.2.4 -r 1.1.2.5 src/plugins/pgpcore/passphrase.c; ) > 1.9.15cvs20.patchset ( cvs diff -u -r 1.213.2.62 -r 1.213.2.63 src/folder.c; cvs diff -u -r 1.87.2.21 -r 1.87.2.22 src/folder.h; cvs diff -u -r 1.207.2.69 -r 1.207.2.70 src/folderview.c; cvs diff -u -r 1.395.2.132 -r 1.395.2.133 src/summaryview.c; ) > 1.9.15cvs21.patchset ( cvs diff -u -r 1.8.2.11 -r 1.8.2.12 src/export.c; ) > 1.9.15cvs22.patchset +( cvs diff -u -r 1.49.2.63 -r 1.49.2.64 src/procmime.c; ) > 1.9.15cvs23.patchset diff --git a/configure.ac b/configure.ac index 3b327748b..a17aced40 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=15 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=22 +EXTRA_VERSION=23 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/procmime.c b/src/procmime.c index 7a345986f..86fde5608 100644 --- a/src/procmime.c +++ b/src/procmime.c @@ -1482,6 +1482,8 @@ static void parse_parameters(const gchar *parameters, GHashTable *table) value[0] = '\0'; value++; + while (value[0] == ' ') + value++; g_strdown(attribute); @@ -1518,6 +1520,18 @@ static void parse_parameters(const gchar *parameters, GHashTable *table) *tmp = '\0'; } + if (attribute) { + while (attribute[0] == ' ') + attribute++; + while (attribute[strlen(attribute)-1] == ' ') + attribute[strlen(attribute)-1] = '\0'; + } + if (value) { + while (value[0] == ' ') + value++; + while (value[strlen(value)-1] == ' ') + value[strlen(value)-1] = '\0'; + } if (strrchr(attribute, '*') != NULL) { gchar *tmpattr; -- 2.25.1