]> git.pld-linux.org Git - packages/tomcat.git/blame - server.xml-URIEncoding-utf8.patch
- 7.0.12
[packages/tomcat.git] / server.xml-URIEncoding-utf8.patch
CommitLineData
1e19945f
ER
1Setup URIEncoding="UTF-8" to use unversal URI encoding.
2
3http://wiki.hudson-ci.org/display/HUDSON/Tomcat
4
5Some versions of Tomcat (such as 5.0.28) uses iso-8859-1 to decode URLs, which
6is in a clear violation of the relevant RFCs. To fix this problem, add the
7following URIEncoding attribute to the connector definition in
8$TOMCAT_HOME/conf/server.xml.
9
bc0d3b1f
JR
10--- a/conf/server.xml.orig 2010-06-13 16:55:18.000000000 +0200
11+++ b/conf/server.xml 2010-07-20 13:51:33.000000000 +0200
12@@ -66,12 +66,14 @@
1e19945f
ER
13 -->
14 <Connector port="8080" protocol="HTTP/1.1"
15 connectionTimeout="20000"
16+ URIEncoding="UTF-8"
17 redirectPort="8443" />
18 <!-- A "Connector" using the shared thread pool-->
19 <!--
20 <Connector executor="tomcatThreadPool"
21 port="8080" protocol="HTTP/1.1"
22 connectionTimeout="20000"
23+ URIEncoding="UTF-8"
24 redirectPort="8443" />
25 -->
26 <!-- Define a SSL HTTP/1.1 Connector on port 8443
bc0d3b1f 27@@ -80,12 +82,12 @@
1e19945f
ER
28 described in the APR documentation -->
29 <!--
30 <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
31- maxThreads="150" scheme="https" secure="true"
32+ maxThreads="150" scheme="https" secure="true" URIEncoding="UTF-8"
33 clientAuth="false" sslProtocol="TLS" />
34 -->
35
36 <!-- Define an AJP 1.3 Connector on port 8009 -->
37- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
38+ <Connector port="8009" protocol="AJP/1.3" URIEncoding="UTF-8" redirectPort="8443" />
39
40
41 <!-- An Engine represents the entry point (within Catalina) that processes
This page took 0.109697 seconds and 4 git commands to generate.