I'm using Runtime.getRuntime().exec(String[]) to run processes where some of the elements of the String array are defined by the user.
Is this safe? Or will it allow to inject code into the terminal?
If it isn't safe what can i do to avoid code injection? (it has to be platform independent)