From 83fea47fea06f6531eba204de8b65533cf78545e Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Sun, 27 Sep 2009 00:16:49 +0000 Subject: [PATCH] * Use strcasecmp instead of strncasecmp as we want to be sure that the whole word is None and not only the beginning. Noted by Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@819237 13f79535-47bb-0310-9956-ffa450edef68 --- modules/cache/mod_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cache/mod_cache.c b/modules/cache/mod_cache.c index b829432bba..28fb415cbb 100644 --- a/modules/cache/mod_cache.c +++ b/modules/cache/mod_cache.c @@ -1255,7 +1255,7 @@ static const char *add_ignore_header(cmd_parms *parms, void *dummy, conf = (cache_server_conf *)ap_get_module_config(parms->server->module_config, &cache_module); - if (!strncasecmp(header, "None", 4)) { + if (!strcasecmp(header, "None")) { /* if header None is listed clear array */ conf->ignore_headers->nelts = 0; } @@ -1283,7 +1283,7 @@ static const char *add_ignore_session_id(cmd_parms *parms, void *dummy, conf = (cache_server_conf *)ap_get_module_config(parms->server->module_config, &cache_module); - if (!strncasecmp(identifier, "None", 4)) { + if (!strcasecmp(identifier, "None")) { /* if identifier None is listed clear array */ conf->ignore_session_id->nelts = 0; } -- 2.50.1