mirror of https://github.com/jumpserver/jumpserver
fix: Arbitrary File Read in Ansible Play
parent
04761a9373
commit
4a5f327498
|
@ -105,7 +105,7 @@ class PlaybookRunner:
|
|||
shutil.rmtree(private_env)
|
||||
|
||||
kwargs = dict(kwargs)
|
||||
if self.isolate and not is_macos:
|
||||
if self.isolate and not is_macos():
|
||||
kwargs['process_isolation'] = True
|
||||
kwargs['process_isolation_executable'] = 'bwrap'
|
||||
|
||||
|
|
|
@ -423,6 +423,7 @@ class JobExecution(JMSOrgBaseModel):
|
|||
this.result.update(cb.result)
|
||||
else:
|
||||
this.result = cb.result
|
||||
this.result = json.loads(json.dumps(this.result).replace('\\u0000', ''))
|
||||
this.finish_task()
|
||||
|
||||
def finish_task(self):
|
||||
|
|
Loading…
Reference in New Issue