[platform] restores loose parameter conversion CIDR is relying on

This commit is contained in:
Roman Shevchenko
2017-08-09 10:54:53 +02:00
parent f5a28b20f2
commit d4c07bb339
@@ -464,8 +464,8 @@ public class CommandLineUtil {
@NotNull
@Contract(pure = true)
public static String escapeParameterOnWindows(@NotNull String parameter, boolean isWinShell) {
if (parameter.isEmpty()) return QQ;
String s = convertLineSeparators(parameter, "");
if (s.isEmpty()) return QQ;
boolean hadLineBreaks = !s.equals(parameter);
String result = isWinShell ? escapeParameter(s, new QuoteFlag(hadLineBreaks), 1, true) : backslashEscapeQuotes(s);
if (hadLineBreaks) result = quote(result, Q);