mirror of https://github.com/MISP/MISP
fix: [compatibility] several scoped constants reverted
parent
3295f69de5
commit
98e1f3f2f9
|
@ -3,7 +3,7 @@ require_once __DIR__ . '/TmpFileTool.php';
|
|||
|
||||
class ComplexTypeTool
|
||||
{
|
||||
private const REFANG_REGEX__TABLE = array(
|
||||
const REFANG_REGEX__TABLE = array(
|
||||
array(
|
||||
'from' => '/^(hxxp|hxtp|htxp|meow|h\[tt\]p)/i',
|
||||
'to' => 'http',
|
||||
|
|
|
@ -22,7 +22,7 @@ class AttachmentScan extends AppModel
|
|||
* List of supported object templates
|
||||
* @var string[]
|
||||
*/
|
||||
private const SIGNATURE_TEMPLATES = [
|
||||
const SIGNATURE_TEMPLATES = [
|
||||
'4dbb56ef-4763-4c97-8696-a2bfc305cf8e', // av-signature
|
||||
'984c5c39-be7f-4e1e-b034-d3213bac51cb', // sb-signature
|
||||
];
|
||||
|
|
|
@ -83,10 +83,10 @@ class Attribute extends AppModel
|
|||
// e.g. if the attribute should be correlated with others or not
|
||||
|
||||
// if these then a category may have upload to be zipped
|
||||
public const ZIPPED_DEFINITION = ['malware-sample'];
|
||||
const ZIPPED_DEFINITION = ['malware-sample'];
|
||||
|
||||
// if these then a category may have upload
|
||||
public const UPLOAD_DEFINITIONS = ['attachment'];
|
||||
const UPLOAD_DEFINITIONS = ['attachment'];
|
||||
|
||||
// skip Correlation for the following types
|
||||
public $nonCorrelatingTypes = array(
|
||||
|
@ -102,7 +102,7 @@ class Attribute extends AppModel
|
|||
'anonymised'
|
||||
);
|
||||
|
||||
public const PRIMARY_ONLY_CORRELATING_TYPES = array(
|
||||
const PRIMARY_ONLY_CORRELATING_TYPES = array(
|
||||
'ip-src|port',
|
||||
'ip-dst|port',
|
||||
'hostname|port',
|
||||
|
@ -754,7 +754,7 @@ class Attribute extends AppModel
|
|||
return true;
|
||||
}
|
||||
|
||||
private const HEX_HAS_LENGTHS = array(
|
||||
const HEX_HAS_LENGTHS = array(
|
||||
'authentihash' => 64,
|
||||
'md5' => 32,
|
||||
'imphash' => 32,
|
||||
|
|
|
@ -61,7 +61,7 @@ class Feed extends AppModel
|
|||
)
|
||||
);
|
||||
|
||||
public const DEFAULT_FEED_PULL_RULES = [
|
||||
const DEFAULT_FEED_PULL_RULES = [
|
||||
'tags' => [
|
||||
"OR" => [],
|
||||
"NOT" => [],
|
||||
|
|
Loading…
Reference in New Issue