[gmime] Be less strict when parsing params
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Be less strict when parsing params
- Date: Thu, 9 Jun 2011 14:28:07 +0000 (UTC)
commit 0fc29b54f4c4652b55ad581e998a6773ceff40d5
Author: Jeffrey Stedfast <fejj gnome org>
Date: Thu Jun 9 10:27:44 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 32ab5de..a7a165a 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 Daniel Kahn Gillmor <dkg fifthhorseman net>
Fix for bug #651826
diff --git a/gmime/gmime-param.c b/gmime/gmime-param.c
index b9f2f68..81c2030 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]