You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2009/11/03 00:03:14 UTC
svn commit: r832177 - /httpd/httpd/trunk/modules/cache/mod_cache.c
Author: trawick
Date: Mon Nov 2 23:03:14 2009
New Revision: 832177
URL: http://svn.apache.org/viewvc?rev=832177&view=rev
Log:
use ap_strchr_c to protect const-ness of input string
(and thus quiet gcc in maintainer mode)
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=832177&r1=832176&r2=832177&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.c Mon Nov 2 23:03:14 2009
@@ -1576,7 +1576,7 @@
if (parms->path && !strcmp(url, "on")) {
url = parms->path;
}
- if (url[0] != '/' && !strchr(url, ':')) {
+ if (url[0] != '/' && !ap_strchr_c(url, ':')) {
return "CacheDisable must specify a path or an URL, or when in a Location, "
"the word 'on'.";
}