From: Jeff Trawick
Date: Sat, 12 Jul 2014 14:52:08 +0000 (+0000)
Subject: Include any error notes set by modules in the canned error
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f8fc53c8f6df76a42ccc89275fcede766662f9e;p=thirdparty%2Fapache%2Fhttpd.git
Include any error notes set by modules in the canned error
response for 403 errors.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1609938 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/CHANGES b/CHANGES
index 70843df14de..f169b533a02 100644
--- 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]
diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c
index 6705e704b75..fe2cc208798 100644
--- a/modules/http/http_protocol.c
+++ b/modules/http/http_protocol.c
@@ -1139,11 +1139,12 @@ static const char *get_canned_error_string(int status,
"error-notes",
"
\n"));
case HTTP_FORBIDDEN:
- return(apr_pstrcat(p,
- "You don't have permission to access ",
- ap_escape_html(r->pool, r->uri),
- "\non this server.
\n",
- NULL));
+ s1 = apr_pstrcat(p,
+ "You don't have permission to access ",
+ ap_escape_html(r->pool, r->uri),
+ "\non this server.
\n",
+ NULL);
+ return(add_optional_notes(r, s1, "error-notes", "
\n"));
case HTTP_NOT_FOUND:
return(apr_pstrcat(p,
"The requested URL ",