mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
added quotes for parameters containing '|' (it may be used in http.nonProxyHosts property) to avoid treating this symbol as end of command
This commit is contained in:
@@ -369,7 +369,7 @@ public class ParametersList implements Cloneable {
|
||||
try {
|
||||
builder.append(parameter);
|
||||
StringUtil.escapeQuotes(builder);
|
||||
if (builder.length() == 0 || StringUtil.indexOf(builder, ' ') >= 0) {
|
||||
if (builder.length() == 0 || StringUtil.indexOf(builder, ' ') >= 0 || StringUtil.indexOf(builder, '|') >= 0) {
|
||||
StringUtil.quote(builder);
|
||||
}
|
||||
return builder.toString();
|
||||
|
||||
Reference in New Issue
Block a user