aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/broken-date-parser.c2
-rw-r--r--camel/camel-mime-utils.c4
3 files changed, 10 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 7e8a3f64a8..ff3f4a50bc 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,10 @@
+2003-10-09 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-mime-utils.c (header_decode_date): Allow timezone offsets
+ to be up to 14 hours ahead of UTC. Fixes bug #49357.
+
+ * broken-date-parser.c (get_tzone): Same.
+
2003-10-08 Jeffrey Stedfast <fejj@ximian.com>
* providers/smtp/camel-smtp-transport.c (smtp_helo): Removed an
diff --git a/camel/broken-date-parser.c b/camel/broken-date-parser.c
index 60e5f1760a..19fc0c2271 100644
--- a/camel/broken-date-parser.c
+++ b/camel/broken-date-parser.c
@@ -292,7 +292,7 @@ get_tzone (struct _date_token **token)
if (*inptr == '+' || *inptr == '-') {
t = decode_int (inptr, inlen);
- if (t < -1200 || t > 1200)
+ if (t < -1200 || t > 1400)
return -1;
return t;
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index fd99da9802..3d4ec2f367 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -3562,12 +3562,12 @@ camel_header_decode_date(const char *in, int *saveoffset)
offset = (*inptr++)=='-'?-1:1;
offset = offset * camel_header_decode_int(&inptr);
d(printf("abs signed offset = %d\n", offset));
- if (offset < -1200 || offset > 1200)
+ if (offset < -1200 || offset > 1400)
offset = 0;
} else if (isdigit(*inptr)) {
offset = camel_header_decode_int(&inptr);
d(printf("abs offset = %d\n", offset));
- if (offset < -1200 || offset > 1200)
+ if (offset < -1200 || offset > 1400)
offset = 0;
} else {
char *tz = decode_token(&inptr);