Fix implicit variable resolution in JSP EvalTag

Prior to this commit, the order of parameters passed to
ELResolver#getValue was incorrect.

The `name` should correspond to the `property` parameter of the
`getValue` method instead the `base` parameter.

See gh-32383
See gh-33942
Closes gh-33945
This commit is contained in:
Mico Piira
2024-11-22 12:45:53 +02:00
committed by Sam Brannen
parent 54a90b20ed
commit 71f872e8bb
2 changed files with 26 additions and 3 deletions

View File

@@ -259,7 +259,7 @@ public class EvalTag extends HtmlEscapingAwareTag {
return null;
}
try {
return this.elContext.getELResolver().getValue(this.elContext, name, null);
return this.elContext.getELResolver().getValue(this.elContext, null, name);
}
catch (Exception ex) {
throw new AccessException(