This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new fe4614d77c Review "Reject jsp:element with multiple name attributes"
fe4614d77c is described below
commit fe4614d77c249020c305c703df2191c8092e33d4
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 4a3441e00f..70c118bf07 100644
--- a/java/org/apache/jasper/compiler/Validator.java
+++ b/java/org/apache/jasper/compiler/Validator.java
@@ -781,10 +781,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]