[gmime/gmime-2-4] Be less strict when parsing params
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime/gmime-2-4] Be less strict when parsing params
- Date: Thu, 9 Jun 2011 14:27:10 +0000 (UTC)
commit 2d0a2c56d41bdba94211442d84da4b39b5e20a1f
Author: Jeffrey Stedfast <fejj gnome org>
Date: Thu Jun 9 10:26:46 2011 -0400
Be less strict when parsing params
2011-06-09 Jeffrey Stedfast <fejj gnome org>
Fix for bug #652056
* gmime/gmime-param.c (decode_value): If STRICT_PARSER isn't
defined, don't require the value to start with a valid
character.
ChangeLog | 7 +++++++
gmime/gmime-param.c | 5 +++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3d87bad..a779421 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-06-09 Jeffrey Stedfast <fejj gnome org>
+
+ Fix for bug #652056
+
+ * gmime/gmime-param.c (decode_value): If STRICT_PARSER isn't
+ defined, don't require the value to start with a valid character.
+
2011-06-08 Jeffrey Stedfast <fejj gnome org>
* README: Bumped version
diff --git a/gmime/gmime-param.c b/gmime/gmime-param.c
index 8731dec..74c846f 100644
--- a/gmime/gmime-param.c
+++ b/gmime/gmime-param.c
@@ -202,6 +202,7 @@ decode_value (const char **in)
const char *inptr = *in;
decode_lwsp (&inptr);
+ *in = inptr;
if (*inptr == '"') {
return decode_quoted_string (in);
@@ -209,7 +210,11 @@ decode_value (const char **in)
return decode_token (in);
}
+#ifndef STRICT_PARSER
+ return decode_token (in);
+#else
return NULL;
+#endif
}
/* This function is basically the same as decode_token()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]