Skip to content

Commit

Permalink
Add fix for xml entities not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Zimri Leisher committed Jan 7, 2025
1 parent f5b1bb0 commit cd754cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Autocoders/Python/bin/tlm_packet_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def gen_packet_file(self, xml_filename):
raise TlmPacketParseIOError("File %s does not exist!" % xml_filename)

fd = open(xml_filename, "r")
xml_parser = etree.XMLParser(remove_comments=True)
xml_parser = etree.XMLParser(remove_comments=True, load_dtd=True, resolve_entities=True, no_network=True)
element_tree = etree.parse(fd, parser=xml_parser)
channel_size_dict = None

Expand Down

0 comments on commit cd754cc

Please sign in to comment.