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
commit afa9f556cf21481ad11f31818cf24f7759cf2bc9 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 3548f6a67a..1d0981ed56 100644 --- a/java/org/apache/jasper/compiler/Validator.java +++ b/java/org/apache/jasper/compiler/Validator.java @@ -829,10 +829,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]
