mirror of https://github.com/MISP/MISP
Merge branch '2.4' of github.com:MISP/MISP into 2.4
commit
830c80c015
|
@ -58,7 +58,7 @@ class StixExport
|
|||
$randomFileName = $this->generateRandomFileName();
|
||||
$this->__tmp_dir = $this->__scripts_dir . 'tmp/';
|
||||
$this->__framing = json_decode(shell_exec($framing_cmd), true);
|
||||
$this->__stix_file = new File($this->__tmp_dir . $randomFileName . '.stix');
|
||||
$this->__stix_file = new File($this->__tmp_dir . $randomFileName . '.' . $this->__return_type);
|
||||
unset($randomFileName);
|
||||
$this->__stix_file->write($this->__framing['header']);
|
||||
$this->__initialize_misp_file();
|
||||
|
@ -93,7 +93,7 @@ class StixExport
|
|||
$this->__stix_file->close();
|
||||
$this->__stix_file->delete();
|
||||
$sep_len = strlen($this->__framing['separator']);
|
||||
$stix_event = substr($stix_event, 0, -$sep_len) . $this->__framing['footer'];
|
||||
$stix_event = (empty($this->__filenames) ? $stix_event : substr($stix_event, 0, -$sep_len)) . $this->__framing['footer'];
|
||||
return $stix_event;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ in the list given by apache.
|
|||
If used with Apache as webserver it might be useful to make a distinction to filter out API/Syncs from SSO login. It can be added to the vhost as follows:
|
||||
|
||||
```Apache
|
||||
<If "-T reqenv('HTTP_AUTHORIZATION')">
|
||||
<If "-T req('Authorization')">
|
||||
Require all granted
|
||||
AuthType None
|
||||
</If>
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit bfcfe7aae9a13db637281c8ccd10f9d89d33b593
|
||||
Subproject commit 81924c519f2d5899023da427cc2d5f8cf29e076b
|
|
@ -70,7 +70,7 @@ class StixBuilder():
|
|||
'created_by_ref': self.identity_id, 'created': self.misp_event['date'],
|
||||
'published': self.get_datetime_from_timestamp(self.misp_event['publish_timestamp']),
|
||||
'interoperability': True}
|
||||
labels = _MISP_event_tags
|
||||
labels = [tag for tag in _MISP_event_tags]
|
||||
if self.misp_event.get('Tag'):
|
||||
markings = []
|
||||
for tag in self.misp_event['Tag']:
|
||||
|
|
Loading…
Reference in New Issue