]> git.ipfire.org Git - thirdparty/squid.git/commit
HTTP Compliance: Make date parser stricter to better handle malformed Expires.
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 22 Sep 2010 23:09:58 +0000 (17:09 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 22 Sep 2010 23:09:58 +0000 (17:09 -0600)
commit1bcd740baa79eb64a2c8d47b91a47805e856fd5e
tree091324e96569f454f6da1940fa027c86ea436e0f
parent8a5e74fcd81046a595724f7426b58ba19ce2184d
HTTP Compliance: Make date parser stricter to better handle malformed Expires.

Check that there is no zone or zone is "GMT" in parse_date_elements().
Make sure there is no junk at the end of date in parse_date().

This will affect Date, IMS, and other date-carrying header fields recognized
by Squid but should not cause any messages to be rejected. Squid would just
ignore the malformed headers as if they are not there.

Co-Advisor test case:
    test_case/rfc2616/invalidExpiresMakesStale-rfc1123x
lib/rfc1123.c