mirror of https://github.com/MISP/MISP
Freetext import tool now splits the input by line break and whitespace, fixes #502
parent
f48acb3723
commit
5559536bf1
|
@ -59,7 +59,7 @@ class ComplexTypeTool {
|
|||
}
|
||||
|
||||
public function checkFreeText($input) {
|
||||
$iocArray = preg_split("/\r\n|\n|\r/", $input);
|
||||
$iocArray = preg_split("/\r\n|\n|\r|\s|\s+/", $input);
|
||||
$resultArray = array();
|
||||
foreach ($iocArray as $ioc) {
|
||||
$ioc = trim($ioc);
|
||||
|
|
Loading…
Reference in New Issue