]> granicus.if.org Git - apache/commit - CHANGES
mod_cache: Fix parsing of quoted Cache-Control token arguments. PR 63288.
authorYann Ylavic <ylavic@apache.org>
Thu, 28 Mar 2019 16:39:39 +0000 (16:39 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 28 Mar 2019 16:39:39 +0000 (16:39 +0000)
commit00bd49eaa54603163d43531b9571cafc7ae74ee0
tree0ffce9f68561572051d1bab7a786d2974a0a2fc0
parentc5c0032baf0e3c1d35f7abd5fdff7a262d8f7881
mod_cache: Fix parsing of quoted Cache-Control token arguments. PR 63288.

Make cache_strqtok() return both the token and its unquoted argument (if any),
or an error if the parsing fails.

Cache-Control integer values (max-age, max-stale, ...) can then be parsed w/o
taking care of the (optional) quoting.

Suggested by: fielding

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1856493 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/cache/cache_storage.c
modules/cache/cache_util.c
modules/cache/cache_util.h