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 61eb542b65 Review "Reject jsp:element with multiple name attributes"
61eb542b65 is described below
commit 61eb542b65f28550a098e32f82997159c44c59e8
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Nov 5 20:42:56 2026 +0000
Review "Reject jsp:element with multiple name attributes"
Simplify
---
java/org/apache/jasper/compiler/Validator.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/java/org/apache/jasper/compiler/Validator.java
b/java/org/apache/jasper/compiler/Validator.java
index ace236d885..fa7e6a42e8 100644
--- a/java/org/apache/jasper/compiler/Validator.java
+++ b/java/org/apache/jasper/compiler/Validator.java
@@ -844,10 +844,8 @@ class Validator {
n.setNameAttribute(getJspAttribute(null,
attrs.getQName(i), attrs.getURI(i), attrs.getLocalName(i),
attrs.getValue(i), n, null, false));
} else {
- if (jspAttrIndex < jspAttrSize) {
- jspAttrs[jspAttrIndex++] = getJspAttribute(null,
attrs.getQName(i), attrs.getURI(i),
- attrs.getLocalName(i), attrs.getValue(i), n,
null, false);
- }
+ jspAttrs[jspAttrIndex++] = getJspAttribute(null,
attrs.getQName(i), attrs.getURI(i),
+ attrs.getLocalName(i), attrs.getValue(i), n, null,
false);
}
}
if (n.getNameAttribute() == null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]