From d4c07bb33949e072c32f2f2ab6d6e53978ecb9e1 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 9 Aug 2017 10:52:50 +0200 Subject: [PATCH] [platform] restores loose parameter conversion CIDR is relying on --- platform/util/src/com/intellij/execution/CommandLineUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/util/src/com/intellij/execution/CommandLineUtil.java b/platform/util/src/com/intellij/execution/CommandLineUtil.java index 12f325e94473..91942b726eeb 100644 --- a/platform/util/src/com/intellij/execution/CommandLineUtil.java +++ b/platform/util/src/com/intellij/execution/CommandLineUtil.java @@ -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);