Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 472 Bytes
# Executor implmentation
#
# Provide a safe execute command, that wll ensure paths and args are escaped properly
# and check for expansions of the command
#
module Owasp
module Esapi
# Executor class
class Executor
# Wrapper for Process#spawn
# it sanitizes the parames and validates paths before execution
def execute_command(cmd,params,working_dir,codec,redirect_error)
cmd_path = File.expand_path(cmd)
end
end
end
end