diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-05-03 01:37:11 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-05-03 01:37:11 +0800 |
commit | c56bdc1cefc7de7b5c50b751aeafa9083aee18e3 (patch) | |
tree | 6b430216c88647e6ba0fef931eb51d13b66d0f4e /camel/broken-date-parser.c | |
parent | 8a9ec3432ed901063bfe665221cced3be6353015 (diff) | |
download | gsoc2013-evolution-c56bdc1cefc7de7b5c50b751aeafa9083aee18e3.tar gsoc2013-evolution-c56bdc1cefc7de7b5c50b751aeafa9083aee18e3.tar.gz gsoc2013-evolution-c56bdc1cefc7de7b5c50b751aeafa9083aee18e3.tar.bz2 gsoc2013-evolution-c56bdc1cefc7de7b5c50b751aeafa9083aee18e3.tar.lz gsoc2013-evolution-c56bdc1cefc7de7b5c50b751aeafa9083aee18e3.tar.xz gsoc2013-evolution-c56bdc1cefc7de7b5c50b751aeafa9083aee18e3.tar.zst gsoc2013-evolution-c56bdc1cefc7de7b5c50b751aeafa9083aee18e3.zip |
Workaround for POS mailers like the one in bug #42045.
2003-05-01 Jeffrey Stedfast <fejj@ximian.com>
Workaround for POS mailers like the one in bug #42045.
* camel-mime-utils.c (header_decode_date): Make sure the numeric
timezone is between -1200 and 1200, otherwise it is invalid.
* broken-date-parser.c (get_tzone): Make sure the numeric timezone
is between -1200 and 1200, otherwise it is invalid.
svn path=/trunk/; revision=21048
Diffstat (limited to 'camel/broken-date-parser.c')
-rw-r--r-- | camel/broken-date-parser.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/broken-date-parser.c b/camel/broken-date-parser.c index f6e697896c..7dcdf1e61e 100644 --- a/camel/broken-date-parser.c +++ b/camel/broken-date-parser.c @@ -291,7 +291,11 @@ get_tzone (struct _date_token **token) inend = inptr + inlen; if (*inptr == '+' || *inptr == '-') { - return decode_int (inptr, inlen); + t = decode_int (inptr, inlen); + if (t < -1200 || t > 1200) + return -1; + + return t; } else { if (*inptr == '(') { inptr++; |