mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] restores loose parameter conversion CIDR is relying on
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user