httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stri...@apache.org
Subject svn commit: r151232 - httpd/httpd/trunk/modules/cache/mod_cache.c
Date Thu, 03 Feb 2005 21:15:38 GMT
Author: striker
Date: Thu Feb  3 13:15:36 2005
New Revision: 151232

URL: http://svn.apache.org/viewcvs?view=rev&rev=151232
Log:
Error out on configurations where the cache provider starts with a '/'.
Saves certain people a bit of time figuring out why their caching
doesn't work...

* modules/cache/mod_cache.c

  (add_cache_enable): Throw an error when a provider starting with
   a '/' is encountered.  The user probably switched arguments.

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

Modified: httpd/httpd/trunk/modules/cache/mod_cache.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/cache/mod_cache.c?view=diff&r1=151231&r2=151232
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.c Thu Feb  3 13:15:36 2005
@@ -863,6 +863,12 @@
     cache_server_conf *conf;
     struct cache_enable *new;
 
+    if (*type == '/') {
+        return apr_psprintf(parms->pool,
+          "provider (%s) starts with a '/'.  Are url and provider switched?",
+          type);
+    }
+
     conf =
         (cache_server_conf *)ap_get_module_config(parms->server->module_config,
                                                   &cache_module);



Mime
View raw message