Commit bf06d86d authored by Nicolas Delaby's avatar Nicolas Delaby

Usage of shell==True is deprecated and unsafe



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@41998 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 51958577
......@@ -98,11 +98,10 @@ class OpenOffice(Application):
def _start_process(self, command, env):
"""Start OpenOffice.org process"""
self.process = Popen(' '.join(command),
stdout=PIPE,
shell=True,
close_fds=True,
env=env)
self.process = Popen(command,
close_fds=True,
env=env)
returned_code = self.process.poll()
waitStartDaemon(self, self.timeout)
return self._testOpenOffice(self.hostname, self.port)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment