* 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:
hns 2007-11-14 10:00:46 +00:00
parent ae83283fc5
commit e29a8aee38

View file

@ -62,7 +62,8 @@ public class RequestTrans implements Serializable {
// the map of form and cookie data
private final Map values = new DataComboMap();
private Map params, queryParams, postParams, cookies;
private ParamComboMap params;
private ParameterMap queryParams, postParams, cookies;
// the HTTP request method
private String method;
@ -243,7 +244,7 @@ public class RequestTrans implements Serializable {
if (postParams == null) {
postParams = new ParameterMap();
}
Object previous = postParams.get(name);
Object previous = postParams.getRaw(name);
if (previous instanceof Object[]) {
Object[] array = (Object[]) previous;
Object[] values = new Object[array.length + 1];
@ -645,6 +646,10 @@ public class RequestTrans implements Serializable {
}
return super.get(key);
}
protected Object getRaw(Object key) {
return super.get(key);
}
}
class DataComboMap extends SystemMap {