From a40aa1748e7fc971998d84fe44695a3af5ccc564 Mon Sep 17 00:00:00 2001 From: iglocska Date: Thu, 18 Oct 2018 15:01:04 +0200 Subject: [PATCH] fix: [internal] getPythonVersion woes --- app/Model/Event.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Model/Event.php b/app/Model/Event.php index f11ff7d60..d4b225a24 100755 --- a/app/Model/Event.php +++ b/app/Model/Event.php @@ -4993,12 +4993,12 @@ class Event extends AppModel if ($stix_version == '2') { $scriptFile = APP . 'files/scripts/stix2/stix2misp.py'; $tempFilePath = APP . 'files/scripts/tmp/' . $filename; - $shell_command = $this->Server->getPythonVersion() . ' ' . $scriptFile . ' ' . $tempFilePath; + $shell_command = $this->getPythonVersion() . ' ' . $scriptFile . ' ' . $tempFilePath; $output_path = $tempFilePath . '.stix2'; } elseif ($stix_version == '1' || $stix_version == '1.1' || $stix_version == '1.2') { $scriptFile = APP . 'files/scripts/stix2misp.py'; $tempFilePath = APP . 'files/scripts/tmp/' . $filename; - $shell_command = $this->Server->getPythonVersion() . ' ' . $scriptFile . ' ' . $filename; + $shell_command = $this->getPythonVersion() . ' ' . $scriptFile . ' ' . $filename; $output_path = $tempFilePath . '.json'; } else { throw new MethodNotAllowedException('Invalid STIX version');