httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r819237 - /httpd/httpd/trunk/modules/cache/mod_cache.c
Date Sun, 27 Sep 2009 00:16:49 GMT
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;
     }



Mime
View raw message