mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-11 03:13:32 +00:00
fix: V-001 security vulnerability (#3461)
Automated security fix generated by Orbis Security AI Co-authored-by: Ubuntu <ubuntu@ip-172-31-32-15.us-west-2.compute.internal>
This commit is contained in:
1 parent
394aff8ac6
commit
2c02289711
1 file changed
+1
-1
@@ -77,7 +77,7 @@ public final class App {
|
||||
} else {
|
||||
// Java Desktop not supported - above unlikely to work for Windows so try the
|
||||
// following instead...
|
||||
Runtime.getRuntime().exec("cmd.exe start " + applicationFile);
|
||||
new ProcessBuilder("cmd.exe", "/c", "start", "", applicationFile.getAbsolutePath()).start();
|
||||
}
|
||||
|
||||
} catch (IOException ex) {
|
||||
|
||||
Reference in new issue
Block a user