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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user