]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Backport mod_expires fix, and delete outdated comment from STATUS
authorNick Kew <niq@apache.org>
Mon, 27 Aug 2007 12:54:29 +0000 (12:54 +0000)
committerNick Kew <niq@apache.org>
Mon, 27 Aug 2007 12:54:29 +0000 (12:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@570093 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/metadata/mod_expires.c

diff --git a/CHANGES b/CHANGES
index 2dcaa43ca194c026d8cfa7eed8ab2f31f1847707..ddb17f5822aad0f6ad8b53b5c28672a2f3438bf2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                         -*- coding: utf-8 -*-
 Changes with Apache 2.2.6
 
+  *) mod_expires: don't crash on bad configuration data
+     PR 43213 [Julien Perez <julien.perez epsylonia.net>]
+
   *) mod_dbd: Introduce configuration groups to allow inheritance by virtual
      hosts of database configurations from the main server.  Determine the
      minimal set of distinct configurations and share connection pools
diff --git a/STATUS b/STATUS
index 61a7c3ee21683cb0a3641d320be6e9f5c7647fd5..f12b15ed9afefa9cbccd97d74d2c14ce738851bd 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -157,10 +157,6 @@ PATCHES PROPOSED TO BACKPORT FROM TRUNK:
       Backport version for 2.2.x of patch:
          Trunk version of patch works
       +1: rpluem, jim
-      -0.5: niq - This (ProxySet) needs documenting. 
-            Reviewing it 'blind' lacks appeal.
-            jim: ProxySet is now documented... Nick can you
-            review your vote?
 
     * mod_proxy: Allow optional name=value options within <Proxy section line.
       Additional arguments are allowed only for 'standard' url's, meaning that
@@ -212,11 +208,6 @@ PATCHES PROPOSED TO BACKPORT FROM TRUNK:
       http://svn.apache.org/viewvc?view=rev&revision=565671
       +1: niq
 
-    * mod_expires: Don't crash on bad configuration data
-      PR: 43213
-      http://svn.apache.org/viewvc?view=rev&revision=569622
-      +1: niq, rpluem, jim
     * log core: ensure we use a special pool for stderr logging, so that
       the stderr channel remains valid from the time plog is destroyed,
       until the time the open_logs hook is called again.  [William Rowe]
index caf9b2b70c37a9a3e0ef7ee4fc00b10ebb17f9a4..984ee9312a7299dc60ca1e3be2b647fda7195040 100644 (file)
@@ -321,6 +321,9 @@ static const char *set_expiresbytype(cmd_parms *cmd, void *in_dir_config,
     const char *check;
 
     check = ap_strrchr_c(mime, '/');
+    if (check == NULL) {
+        return "Invalid mimetype: should contain a slash";
+    }
     if ((strlen(++check) == 1) && (*check == '*')) {
         dir_config->wildcards = 1;
     }