aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-10-10 00:46:30 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-10-10 00:46:30 +0800
commit574ed950dad8a517ea0dc0ac9cbc0b364e26606e (patch)
tree9fd49f2f0dc313d9305dd572fae3703fdea04448
parent015c3706a89faf252efb610555212f3b00506172 (diff)
downloadgsoc2013-evolution-574ed950dad8a517ea0dc0ac9cbc0b364e26606e.tar
gsoc2013-evolution-574ed950dad8a517ea0dc0ac9cbc0b364e26606e.tar.gz
gsoc2013-evolution-574ed950dad8a517ea0dc0ac9cbc0b364e26606e.tar.bz2
gsoc2013-evolution-574ed950dad8a517ea0dc0ac9cbc0b364e26606e.tar.lz
gsoc2013-evolution-574ed950dad8a517ea0dc0ac9cbc0b364e26606e.tar.xz
gsoc2013-evolution-574ed950dad8a517ea0dc0ac9cbc0b364e26606e.tar.zst
gsoc2013-evolution-574ed950dad8a517ea0dc0ac9cbc0b364e26606e.zip
Allow timezone offsets to be up to 14 hours ahead of UTC. Fixes bug
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. svn path=/trunk/; revision=22838
-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);