提交 46094765 编写于 作者: R Rossen Stoyanchev

Minor refactoring in DefaultPathContainer

Closes gh-27204
上级 af67764e
......@@ -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));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册