]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Include any error notes set by modules in the canned error
authorJeff Trawick <trawick@apache.org>
Sat, 12 Jul 2014 14:52:08 +0000 (14:52 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 12 Jul 2014 14:52:08 +0000 (14:52 +0000)
response for 403 errors.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1609938 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/http/http_protocol.c

diff --git a/CHANGES b/CHANGES
index 70843df14deaed9cdc6344e40caf68203f73ccc4..f169b533a02c255d26000b2ee5dc7ed26eeacaa1 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) core: Include any error notes set by modules in the canned error
+     response for 403 errors.  [Jeff Trawick]
+
   *) mod_ssl: Set an error note for requests rejected due to
      SSLStrictSNIVHostCheck.  [Jeff Trawick]
 
index 6705e704b75b988f5286c4d67eb015a37627c2ee..fe2cc208798ec9b2fd4ddf8454813cd96484462f 100644 (file)
@@ -1139,11 +1139,12 @@ static const char *get_canned_error_string(int status,
                                   "error-notes",
                                   "</p>\n"));
     case HTTP_FORBIDDEN:
-        return(apr_pstrcat(p,
-                           "<p>You don't have permission to access ",
-                           ap_escape_html(r->pool, r->uri),
-                           "\non this server.</p>\n",
-                           NULL));
+        s1 = apr_pstrcat(p,
+                         "<p>You don't have permission to access ",
+                         ap_escape_html(r->pool, r->uri),
+                         "\non this server.<br />\n",
+                         NULL);
+        return(add_optional_notes(r, s1, "error-notes", "</p>\n"));
     case HTTP_NOT_FOUND:
         return(apr_pstrcat(p,
                            "<p>The requested URL ",