From: Ruediger Pluem Date: Sun, 27 Sep 2009 00:16:49 +0000 (+0000) Subject: * Use strcasecmp instead of strncasecmp as we want to be sure that the whole X-Git-Tag: 2.3.3~262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83fea47fea06f6531eba204de8b65533cf78545e;p=apache * 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 --- 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; }