Revert commit 0f38c28e91
The fix is not how the issue needs to be addressed. See gh-34121
This commit is contained in:
@@ -244,10 +244,6 @@ public class ServletRequestDataBinder extends WebDataBinder {
|
||||
@Nullable
|
||||
protected Object getRequestParameter(String name, Class<?> type) {
|
||||
Object value = this.request.getParameterValues(name);
|
||||
if (value == null && !name.endsWith("[]") &&
|
||||
(List.class.isAssignableFrom(type) || type.isArray())) {
|
||||
value = this.request.getParameterValues(name + "[]");
|
||||
}
|
||||
return (ObjectUtils.isArray(value) && Array.getLength(value) == 1 ? Array.get(value, 0) : value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user