I am using Runtime.getRuntime (). exec (String []) to start processes in which some elements of the String array are user-defined.
Is it safe? Or will it allow you to enter the code into the terminal?
If this is unsafe, what can I do to avoid code injection? (it must be platform independent)
source
share