Minor refactoring in DefaultPathContainer

Closes gh-27204
This commit is contained in:
Rossen Stoyanchev 2021-07-22 21:53:14 +01:00
parent af67764edb
commit 460947651a
1 changed files with 4 additions and 4 deletions

View File

@ -165,10 +165,10 @@ final class DefaultPathContainer implements PathContainer {
int index = input.indexOf('=');
if (index != -1) {
String name = input.substring(0, index);
String value = input.substring(index + 1);
for (String v : StringUtils.commaDelimitedListToStringArray(value)) {
name = StringUtils.uriDecode(name, charset);
if (StringUtils.hasText(name)) {
name = StringUtils.uriDecode(name, charset);
if (StringUtils.hasText(name)) {
String value = input.substring(index + 1);
for (String v : StringUtils.commaDelimitedListToStringArray(value)) {
output.add(name, StringUtils.uriDecode(v, charset));
}
}