Skip to content

Commit

Permalink
Security: fix security alert on Runtime.getRuntime().exec
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@3521 3d1905a2-6b24-0410-a738-b14d5a86fcbd
  • Loading branch information
mguessan committed Mar 10, 2024
1 parent f62d38a commit bb6b3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/davmail/ui/browser/OSXDesktopBrowser.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ private OSXDesktopBrowser() {
* @throws IOException on error
*/
public static void browse(URI location) throws IOException {
Runtime.getRuntime().exec("open " + location.toString());
Runtime.getRuntime().exec(new String[]{"open", location.toString()});
}
}

0 comments on commit bb6b3a3

Please sign in to comment.