In remove_custom_stix(), when creating the new version,
use allow_custom=False to force custom properties to be disallowed. This is extra insurance against a custom prop accidentally getting through.pull/1/head
parent
78d3b2c4c5
commit
d4cecd6f51
|
@ -255,7 +255,7 @@ def remove_custom_stix(stix_obj):
|
||||||
# add to set the custom properties we want to get rid of (with their value=None)
|
# add to set the custom properties we want to get rid of (with their value=None)
|
||||||
props.extend(custom_props)
|
props.extend(custom_props)
|
||||||
|
|
||||||
new_obj = new_version(stix_obj, **(dict(props)))
|
new_obj = new_version(stix_obj, allow_custom=False, **(dict(props)))
|
||||||
|
|
||||||
return new_obj
|
return new_obj
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue