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 2026/10/01 15:12:53 UTC
(tomcat) branch 10.1.x updated: Parameter names are not case-sensitive
This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 1a83def7d3 Parameter names are not case-sensitive
1a83def7d3 is described below
commit 1a83def7d30c060f2b7f8f5b02093d9e3314ebb5
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Oct 1 16:12:34 2026 +0100
Parameter names are not case-sensitive
---
java/org/apache/jasper/compiler/Validator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/jasper/compiler/Validator.java b/java/org/apache/jasper/compiler/Validator.java
index 66dcd12d95..4d9e4deb37 100644
--- a/java/org/apache/jasper/compiler/Validator.java
+++ b/java/org/apache/jasper/compiler/Validator.java
@@ -1614,7 +1614,7 @@ class Validator {
PageInfo pageInfo = compiler.getPageInfo();
String contentType = pageInfo.getContentType();
- if (contentType == null || !contentType.contains("charset=")) {
+ if (contentType == null || !contentType.toLowerCase(Locale.ENGLISH).contains("charset=")) {
boolean isXml = page.getRoot().isXmlSyntax();
String defaultType;
defaultType = Objects.requireNonNullElse(contentType, isXml ? "text/xml" : "text/html");
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org