aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
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 /camel/camel-mime-utils.c
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
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c4
1 files changed, 2 insertions, 2 deletions
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);