You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2009/09/27 02:16:49 UTC

svn commit: r819237 - /httpd/httpd/trunk/modules/cache/mod_cache.c

Author: rpluem
Date: Sun Sep 27 00:16:49 2009
New Revision: 819237

URL: http://svn.apache.org/viewvc?rev=819237&view=rev
Log:
* 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

Modified:
    httpd/httpd/trunk/modules/cache/mod_cache.c

Modified: httpd/httpd/trunk/modules/cache/mod_cache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache.c?rev=819237&r1=819236&r2=819237&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.c Sun Sep 27 00:16:49 2009
@@ -1255,7 +1255,7 @@
     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 @@
     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;
     }