mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-167820 - Weblogic shutdown fails is password contains "@"
This commit is contained in:
@@ -64,7 +64,7 @@ public class CommandLineUtil {
|
||||
}
|
||||
}
|
||||
|
||||
if (winShell && StringUtil.containsAnyChar(parameter, WIN_SHELL_SPECIALS)) {
|
||||
if (winShell && isSpecialQuoteNeeded(parameter)) {
|
||||
parameter = quote(parameter, SPECIAL_QUOTE);
|
||||
}
|
||||
|
||||
@@ -118,4 +118,8 @@ public class CommandLineUtil {
|
||||
|
||||
return new File(StringUtil.unquoteString(execName)).getName();
|
||||
}
|
||||
|
||||
public static boolean isSpecialQuoteNeeded(String parameter) {
|
||||
return StringUtil.containsAnyChar(parameter, WIN_SHELL_SPECIALS);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user