I've got a situation where I want to pass a shell script a parameter that came in through a rest API.
Does anyone have a thoroughly tested piece of code to stop a user from entering ";rm -rf / ?
Something like http://php.net/manual/en/function.escapeshellarg.php .