-*- coding: utf-8 -*-
Changes with Apache 2.3.15
+ *) mod_cache: Ensure that CacheDisable can correctly appear within
+ a LocationMatch. [Graham Leggett]
+
*) mod_cache: Fix the moving of the CACHE filter, which erroneously
stood down if the original filter was not added by configuration.
[Graham Leggett]
return err;
}
- if (parms->path && !strcmp(url, "on")) {
- url = parms->path;
- }
- if (url[0] != '/' && !ap_strchr_c(url, ':')) {
- return "CacheDisable must specify a path or an URL, or when in a Location, "
- "the word 'on'.";
- }
-
- if (parms->path && strncmp(parms->path, url, strlen(parms->path))) {
- return "When in a Location, CacheDisable must specify a path or an URL below "
- "that location.";
- }
-
conf =
(cache_server_conf *)ap_get_module_config(parms->server->module_config,
&cache_module);
if (parms->path) {
- dconf->disable = 1;
- dconf->disable_set = 1;
- return NULL;
+ if (!strcmp(url, "on")) {
+ dconf->disable = 1;
+ dconf->disable_set = 1;
+ return NULL;
+ }
+ else {
+ return "CacheDisable must be followed by the word 'on' when in a Location.";
+ }
+ }
+
+ if (!url || (url[0] != '/' && !ap_strchr_c(url, ':'))) {
+ return "CacheDisable must specify a path or an URL.";
}
new = apr_array_push(conf->cachedisable);