This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new f2748c8982 Parameter names are not case-sensitive
f2748c8982 is described below
commit f2748c89828a878cc7675b1c778034db5e8676bc
Author: Mark Thomas <[email protected]>
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 fb38f5f096..ca856b3e96 100644
--- a/java/org/apache/jasper/compiler/Validator.java
+++ b/java/org/apache/jasper/compiler/Validator.java
@@ -1598,7 +1598,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;
if (contentType == null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]