From: Graham Leggett Date: Fri, 7 Jun 2013 10:56:02 +0000 (+0000) Subject: mod_cache: Make option "CacheDisable" in mod_cache case insensitive PR 54462 X-Git-Tag: 2.4.5~171 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8c9d23d38a826b3caddd1cc5cef6d198e4d49ce;p=apache mod_cache: Make option "CacheDisable" in mod_cache case insensitive PR 54462 trunk patch: http://svn.apache.org/r1464721 Submitted by: Tianyin Xu Reviewed by: jailletc36, fuankg, minfrin git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1490581 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 3b6e851714..30855c2d13 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.4.5 + *) mod_cache: Make option "CacheDisable" in mod_cache case insensitive PR + 54462 [Tianyin Xu ] + *) mod_cache: If a 304 response indicates an entity not currently cached, then the cache MUST disregard the response and repeat the request without the conditional. [Graham Leggett, Co-Advisor ] diff --git a/STATUS b/STATUS index d116939807..b918b28891 100644 --- a/STATUS +++ b/STATUS @@ -131,12 +131,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK: half of all new stuff, and therefore the +0.5 - I would like to have someone else add a vote too. - * mod_cache: Make option "CacheDisable" in mod_cache case insensitive - PR 54462 reported by Tianyin Xu [tixu cs ucsd edu] - trunk patch: http://svn.apache.org/r1464721 - 2.4.x patch: trunk works - +1 jailletc36, fuankg, minfrin - PATCHES PROPOSED TO BACKPORT FROM TRUNK: [ New proposals should be added at the end of the list ] diff --git a/modules/cache/mod_cache.c b/modules/cache/mod_cache.c index 513448a583..d991709b55 100644 --- a/modules/cache/mod_cache.c +++ b/modules/cache/mod_cache.c @@ -2264,7 +2264,7 @@ static const char *add_cache_disable(cmd_parms *parms, void *dummy, &cache_module); if (parms->path) { - if (!strcmp(url, "on")) { + if (!strcasecmp(url, "on")) { dconf->disable = 1; dconf->disable_set = 1; return NULL;