* Fix bug where multiple parameter values with the same name aren't
stored in parameter map for forms with enctype="multipart-formdata".
This commit is contained in:
parent
ae83283fc5
commit
e29a8aee38
1 changed files with 7 additions and 2 deletions
|
@ -62,7 +62,8 @@ public class RequestTrans implements Serializable {
|
||||||
// the map of form and cookie data
|
// the map of form and cookie data
|
||||||
private final Map values = new DataComboMap();
|
private final Map values = new DataComboMap();
|
||||||
|
|
||||||
private Map params, queryParams, postParams, cookies;
|
private ParamComboMap params;
|
||||||
|
private ParameterMap queryParams, postParams, cookies;
|
||||||
|
|
||||||
// the HTTP request method
|
// the HTTP request method
|
||||||
private String method;
|
private String method;
|
||||||
|
@ -243,7 +244,7 @@ public class RequestTrans implements Serializable {
|
||||||
if (postParams == null) {
|
if (postParams == null) {
|
||||||
postParams = new ParameterMap();
|
postParams = new ParameterMap();
|
||||||
}
|
}
|
||||||
Object previous = postParams.get(name);
|
Object previous = postParams.getRaw(name);
|
||||||
if (previous instanceof Object[]) {
|
if (previous instanceof Object[]) {
|
||||||
Object[] array = (Object[]) previous;
|
Object[] array = (Object[]) previous;
|
||||||
Object[] values = new Object[array.length + 1];
|
Object[] values = new Object[array.length + 1];
|
||||||
|
@ -645,6 +646,10 @@ public class RequestTrans implements Serializable {
|
||||||
}
|
}
|
||||||
return super.get(key);
|
return super.get(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected Object getRaw(Object key) {
|
||||||
|
return super.get(key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class DataComboMap extends SystemMap {
|
class DataComboMap extends SystemMap {
|
||||||
|
|
Loading…
Add table
Reference in a new issue