]> granicus.if.org Git - apache/commitdiff
mod_speling/PR 38923: don't embed Referer in link in error page.
authorNick Kew <niq@apache.org>
Mon, 18 Sep 2017 21:20:51 +0000 (21:20 +0000)
committerNick Kew <niq@apache.org>
Mon, 18 Sep 2017 21:20:51 +0000 (21:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1808780 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/mappers/mod_speling.c

diff --git a/CHANGES b/CHANGES
index fc03f9fbee6a4a6f393b5a29d49ebd2d931b966a..6c4986434472221b6820376b8663c56c44294211 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_speling: Don't embed referer data in a link in error page.
+     PR 38923 [Nick Kew]
+
   *) mod_rewrite, core: Avoid the 'Vary: Host' response header when HTTP_HOST is
      used in a condition that evaluates to true. PR 58231 [Luca Toscano]
 
index d0ac5b2b98de9df8984112562e9596da58da86bd..b0f4b8fe0eec3dfe3a3936e72325ae3b42c78ae9 100644 (file)
@@ -482,10 +482,10 @@ static int check_speling(request_rec *r)
             if (ref != NULL) {
                 *(const char **)apr_array_push(t) =
                                "Please consider informing the owner of the "
-                               "<a href=\"";
-                *(const char **)apr_array_push(t) = ap_escape_uri(sub_pool, ref);
-                *(const char **)apr_array_push(t) = "\">referring page</a> "
-                               "about the broken link.\n";
+                               "referring page <tt>";
+                *(const char **)apr_array_push(t) = ap_escape_html(sub_pool, ref);
+                *(const char **)apr_array_push(t) =
+                               "</tt> about the broken link.\n";
             }