You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/10/19 16:06:42 UTC

[tomcat] branch 7.0.x updated: SpotBugs - Fix NPE. Specify ISO-8859-1 explicitly.

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/7.0.x by this push:
     new b7b3e6d  SpotBugs - Fix NPE. Specify ISO-8859-1 explicitly.
b7b3e6d is described below

commit b7b3e6daaf1c9849d2b7817ad3f86b8e286e6c2e
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Oct 19 17:04:35 2020 +0100

    SpotBugs - Fix NPE. Specify ISO-8859-1 explicitly.
---
 java/org/apache/catalina/connector/CoyoteAdapter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/connector/CoyoteAdapter.java b/java/org/apache/catalina/connector/CoyoteAdapter.java
index bbccac9..a5de0f9 100644
--- a/java/org/apache/catalina/connector/CoyoteAdapter.java
+++ b/java/org/apache/catalina/connector/CoyoteAdapter.java
@@ -1192,7 +1192,7 @@ public class CoyoteAdapter implements Adapter {
                 }
             } catch (IOException e) {
                 log.error("Invalid URI encoding; using HTTP default");
-                connector.setURIEncoding(null);
+                connector.setURIEncoding("ISO-8859-1");
             }
             if (conv != null) {
                 try {


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org