Decode target parameter names prior to saving a FlashMap
In addition to the target parameter values (SPR-9657), the target parameter names must also be decoded to be able to match them to the parameter names of incoming requests. Issue: SPR-11504
This commit is contained in:
committed by
Rossen Stoyanchev
parent
519799e1cf
commit
2f8bc6eec1
@@ -219,7 +219,7 @@ public abstract class AbstractFlashMapManager implements FlashMapManager {
|
||||
private void decodeParameters(MultiValueMap<String, String> params, HttpServletRequest request) {
|
||||
for (String name : new ArrayList<String>(params.keySet())) {
|
||||
for (String value : new ArrayList<String>(params.remove(name))) {
|
||||
params.add(name, this.urlPathHelper.decodeRequestString(request, value));
|
||||
params.add(this.urlPathHelper.decodeRequestString(request, name), this.urlPathHelper.decodeRequestString(request, value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user