mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
More XHTML foo.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89805 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -558,13 +558,13 @@ int ssl_hook_Handler(request_rec *r)
|
|||||||
port = ap_get_server_port(r);
|
port = ap_get_server_port(r);
|
||||||
if (!ap_is_default_port(port, r))
|
if (!ap_is_default_port(port, r))
|
||||||
thisport = apr_psprintf(r->pool, ":%u", port);
|
thisport = apr_psprintf(r->pool, ":%u", port);
|
||||||
thisurl = apr_psprintf(r->pool, "https://%s%s/",
|
thisurl = ap_escape_html(r->pool, apr_psprintf(r->pool, "https://%s%s/",
|
||||||
ap_get_server_name(r), thisport);
|
ap_get_server_name(r), thisport));
|
||||||
|
|
||||||
apr_table_setn(r->notes, "error-notes", apr_psprintf(r->pool,
|
apr_table_setn(r->notes, "error-notes", apr_psprintf(r->pool,
|
||||||
"Reason: You're speaking plain HTTP to an SSL-enabled server port.<BR>\n"
|
"Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />\n"
|
||||||
"Instead use the HTTPS scheme to access this URL, please.<BR>\n"
|
"Instead use the HTTPS scheme to access this URL, please.<br />\n"
|
||||||
"<BLOCKQUOTE>Hint: <A HREF=\"%s\"><B>%s</B></A></BLOCKQUOTE>",
|
"<blockquote>Hint: <a href=\"%s\"><b>%s</b></a></blockquote>",
|
||||||
thisurl, thisurl));
|
thisurl, thisurl));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user