mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-09-04 20:18:00 +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:
co-authored by
Ubuntu
parent
394aff8ac6
commit
2c02289711
@@ -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