mirror of https://github.com/MISP/MISP
fix: [refanging] Removed obnoxious regexes, fixes #7214
- refanging \\. and .. to . is a stupid ideapull/7215/head
parent
a65cb60d7a
commit
b773361561
|
@ -10,15 +10,10 @@ class ComplexTypeTool
|
||||||
'types' => array('link', 'url')
|
'types' => array('link', 'url')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'from' => '/(\[\.\]|\[dot\]|\(dot\)|\\\\\.)/',
|
'from' => '/(\[\.\]|\[dot\]|\(dot\))/',
|
||||||
'to' => '.',
|
'to' => '.',
|
||||||
'types' => array('link', 'url', 'ip-dst', 'ip-src', 'domain|ip', 'domain', 'hostname')
|
'types' => array('link', 'url', 'ip-dst', 'ip-src', 'domain|ip', 'domain', 'hostname')
|
||||||
),
|
),
|
||||||
array(
|
|
||||||
'from' => '/\.+/',
|
|
||||||
'to' => '.',
|
|
||||||
'types' => array('ip-dst', 'ip-src', 'domain|ip', 'domain', 'hostname')
|
|
||||||
),
|
|
||||||
array(
|
array(
|
||||||
'from' => '/\[hxxp:\/\/\]/',
|
'from' => '/\[hxxp:\/\/\]/',
|
||||||
'to' => 'http://',
|
'to' => 'http://',
|
||||||
|
|
Loading…
Reference in New Issue