1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Escape error-notes correctly

PR 40952


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@573939 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Kew
2007-09-09 01:13:38 +00:00
parent 6c763f831e
commit 982a8e3feb
2 changed files with 4 additions and 1 deletions

View File

@@ -2,6 +2,9 @@
Changes with Apache 2.3.0 Changes with Apache 2.3.0
[ When backported to 2.2.x, remove entry from this file ] [ When backported to 2.2.x, remove entry from this file ]
*) mod_proxy: escape error-notes correctly
PR 40952 [Thijs Kinkhorst <thijs debian.org>]
*) mod_proxy: check ProxyBlock for all blocked addresses *) mod_proxy: check ProxyBlock for all blocked addresses
PR 36987 [Timo Viipuri <timo.viipuri f-secure.com>] PR 36987 [Timo Viipuri <timo.viipuri f-secure.com>]

View File

@@ -494,7 +494,7 @@ PROXY_DECLARE(int) ap_proxyerror(request_rec *r, int statuscode, const char *mes
apr_table_setn(r->notes, "error-notes", apr_table_setn(r->notes, "error-notes",
apr_pstrcat(r->pool, apr_pstrcat(r->pool,
"The proxy server could not handle the request " "The proxy server could not handle the request "
"<em><a href=\"", ap_escape_uri(r->pool, r->uri), "<em><a href=\"", ap_escape_html(r->pool, r->uri),
"\">", ap_escape_html(r->pool, r->method), "\">", ap_escape_html(r->pool, r->method),
"&nbsp;", "&nbsp;",
ap_escape_html(r->pool, r->uri), "</a></em>.<p>\n" ap_escape_html(r->pool, r->uri), "</a></em>.<p>\n"