]> TLD Linux GIT Repositories - packages/apache.git/blobdiff - httpd-2.0.45-encode.patch
- update all patches
[packages/apache.git] / httpd-2.0.45-encode.patch
index 82d9a0b5afba3f90944c4cf7ff02cdd7be6f6fd0..e36728d07290ad84bc84e32cf3414b9fedc334ee 100644 (file)
@@ -1,33 +1,13 @@
 * don't HTML-escape the SERVER_NAME variable
-* do escape SERVER_NAME in error docs
-* remove dates from error pages (#86474), since they won't be in the right
-language
 
-diff -ur httpd-2.2.0.org/docs/error/include/bottom.html httpd-2.2.0/docs/error/include/bottom.html
---- httpd-2.2.0.org/docs/error/include/bottom.html     2004-11-20 21:16:24.000000000 +0100
-+++ httpd-2.2.0/docs/error/include/bottom.html 2005-12-02 23:04:57.540690250 +0100
-@@ -5,10 +5,8 @@
- <h2>Error <!--#echo encoding="none" var="REDIRECT_STATUS" --></h2>
- <address>
--  <a href="/"><!--#echo var="SERVER_NAME" --></a><br />
--  <!--#config timefmt="%c" -->
--  <span><!--#echo var="DATE_LOCAL" --><br />
--  <!--#echo var="SERVER_SOFTWARE" --></span>
-+  <a href="/"><!--#echo encoding="entity" var="SERVER_NAME" --></a><br />
-+  <span><!--#echo var="SERVER_SOFTWARE" --></span>
- </address>
- </body>
- </html>
-diff -ur httpd-2.2.0.org/server/util_script.c httpd-2.2.0/server/util_script.c
---- httpd-2.2.0.org/server/util_script.c       2005-11-10 16:20:05.000000000 +0100
-+++ httpd-2.2.0/server/util_script.c   2005-12-02 23:04:50.848272000 +0100
-@@ -224,8 +224,7 @@
+--- httpd-2.4.1/server/util_script.c.orig      2012-02-09 16:09:00.000000000 +0100
++++ httpd-2.4.1/server/util_script.c   2012-02-21 23:59:00.129432524 +0100
+@@ -229,8 +229,7 @@
  
      apr_table_addn(e, "SERVER_SIGNATURE", ap_psignature("", r));
      apr_table_addn(e, "SERVER_SOFTWARE", ap_get_server_banner());
 -    apr_table_addn(e, "SERVER_NAME",
--                   ap_escape_html(r->pool, ap_get_server_name(r)));
+-                   ap_escape_html(r->pool, ap_get_server_name_for_url(r)));
 +    apr_table_addn(e, "SERVER_NAME", ap_get_server_name(r));
      apr_table_addn(e, "SERVER_ADDR", r->connection->local_ip);  /* Apache */
      apr_table_addn(e, "SERVER_PORT",