diff options
author | Valery Piashchynski <[email protected]> | 2021-03-04 15:23:33 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-03-04 15:23:33 +0300 |
commit | 18db7e038a8fa7aaca7658b93c4c632261e470ff (patch) | |
tree | 908d454d21a860b271a24cab2fcef9219aafa5d5 /plugins/server | |
parent | b4b8e2b658bf3e1077c7cee4cf38b9a9b3bf3d29 (diff) |
🐛 fix(bug): remove php command path validation
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/server')
-rw-r--r-- | plugins/server/plugin.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/server/plugin.go b/plugins/server/plugin.go index 95e593b8..f708b15e 100644 --- a/plugins/server/plugin.go +++ b/plugins/server/plugin.go @@ -90,10 +90,6 @@ func (server *Plugin) CmdFactory(env Env) (func() *exec.Cmd, error) { return nil, errors.E(op, errors.Str("minimum command should be `<executable> <script>")) } - _, err := os.Stat(cmdArgs[1]) - if err != nil { - return nil, errors.E(op, err) - } return func() *exec.Cmd { cmd := exec.Command(cmdArgs[0], cmdArgs[1:]...) //nolint:gosec utils.IsolateProcess(cmd) |