mirror of https://github.com/MISP/MISP
chg: [stix2 export] Using a specific filter to specify the STIX version
- `version` being too generic and used from another end point, we use `stix-version` in order to avoid confusion between the 2 filterspull/7818/head
parent
91e7d54856
commit
71837d2f1b
|
@ -28,8 +28,8 @@ class StixExport
|
|||
|
||||
public function setDefaultFilters($filters)
|
||||
{
|
||||
$sane_version = (!empty($filters['version']) && in_array($filters['version'], $this->__sane_versions));
|
||||
$this->__version = $sane_version ? $filters['version'] : $this->__default_version;
|
||||
$sane_version = (!empty($filters['stix-version']) && in_array($filters['stix-version'], $this->__sane_versions));
|
||||
$this->__version = $sane_version ? $filters['stix-version'] : $this->__default_version;
|
||||
}
|
||||
|
||||
public function handler($data, $options = array())
|
||||
|
|
Loading…
Reference in New Issue