]> granicus.if.org Git - apache/commitdiff
* Use strcasecmp instead of strncasecmp as we want to be sure that the whole
authorRuediger Pluem <rpluem@apache.org>
Sun, 27 Sep 2009 00:16:49 +0000 (00:16 +0000)
committerRuediger Pluem <rpluem@apache.org>
Sun, 27 Sep 2009 00:16:49 +0000 (00:16 +0000)
  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

index b829432bbaa01ab746e759a41afdf87689164e33..28fb415cbb12d9ba8ebf3f5e451a2900e6199b19 100644 (file)
@@ -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;
     }