mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 18:15:41 +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 {
|
} else {
|
||||||
// Java Desktop not supported - above unlikely to work for Windows so try the
|
// Java Desktop not supported - above unlikely to work for Windows so try the
|
||||||
// following instead...
|
// following instead...
|
||||||
Runtime.getRuntime().exec("cmd.exe start " + applicationFile);
|
new ProcessBuilder("cmd.exe", "/c", "start", "", applicationFile.getAbsolutePath()).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
|
|||||||
Reference in new issue
Block a user