]> granicus.if.org Git - apache/commitdiff
More XHTML foo.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 30 Jul 2001 22:30:51 +0000 (22:30 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 30 Jul 2001 22:30:51 +0000 (22:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89805 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_kernel.c

index f2b853b457deb9d11c66eeee61dbf53546746cea..7bbf9cb0ef4be6f13d27b740d0f4dac0d7ef2a6f 100644 (file)
@@ -558,13 +558,13 @@ int ssl_hook_Handler(request_rec *r)
         port = ap_get_server_port(r);
         if (!ap_is_default_port(port, r))
             thisport = apr_psprintf(r->pool, ":%u", port);
-        thisurl = apr_psprintf(r->pool, "https://%s%s/",
-                               ap_get_server_name(r), thisport);
+        thisurl = ap_escape_html(r->pool, apr_psprintf(r->pool, "https://%s%s/",
+                                 ap_get_server_name(r), thisport));
 
         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"
-                       "Instead use the HTTPS scheme to access this URL, please.<BR>\n"
-                       "<BLOCKQUOTE>Hint: <A HREF=\"%s\"><B>%s</B></A></BLOCKQUOTE>",
+                       "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"
+                       "<blockquote>Hint: <a href=\"%s\"><b>%s</b></a></blockquote>",
                        thisurl, thisurl));
     }