mirror of https://github.com/MISP/MISP
fix: Fixed sanitisation of feed correlation fields
parent
8c6f7ccc24
commit
98d45d2d9f
|
@ -101,6 +101,13 @@ class XMLConverterTool {
|
||||||
$ra = array('Attribute' => array(0 => $ra));
|
$ra = array('Attribute' => array(0 => $ra));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!empty($event['Event']['Attribute'][$key]['Feed'])) {
|
||||||
|
foreach ($event['Event']['Attribute'][$key]['Feed'] as $fKey => $feed) {
|
||||||
|
$this->__sanitizeField($event['Event']['Attribute'][$key]['Feed'][$fKey]['name']);
|
||||||
|
$this->__sanitizeField($event['Event']['Attribute'][$key]['Feed'][$fKey]['url']);
|
||||||
|
$this->__sanitizeField($event['Event']['Attribute'][$key]['Feed'][$fKey]['provider']);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (isset($event['Event']['Attribute'][$key]['ShadowAttribute'])) {
|
if (isset($event['Event']['Attribute'][$key]['ShadowAttribute'])) {
|
||||||
foreach ($event['Event']['Attribute'][$key]['ShadowAttribute'] as $skey => $svalue) {
|
foreach ($event['Event']['Attribute'][$key]['ShadowAttribute'] as $skey => $svalue) {
|
||||||
$this->__sanitizeField($event['Event']['Attribute'][$key]['ShadowAttribute'][$skey]['value']);
|
$this->__sanitizeField($event['Event']['Attribute'][$key]['ShadowAttribute'][$skey]['value']);
|
||||||
|
|
Loading…
Reference in New Issue