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
Michael Chisholm 2020-05-28 17:08:40 -04:00
parent 78d3b2c4c5
commit d4cecd6f51
1 changed files with 1 additions and 1 deletions

View File

@ -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)
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