This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 11f4f9bcae Review "Reject jsp:element with multiple name attributes"
11f4f9bcae is described below

commit 11f4f9bcae0bf873eb65b5d29898d606355a4a86
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]

Reply via email to