Bugfix in case commandline text is empty.
This commit is contained in:
parent
f1f2f28f61
commit
4f252d55a7
@ -295,9 +295,10 @@ class XMLReader(object):
|
|||||||
elif event.tag == 'system':
|
elif event.tag == 'system':
|
||||||
attack.match = int(event.find('match').text)
|
attack.match = int(event.find('match').text)
|
||||||
for term in event.find('commandline'):
|
for term in event.find('commandline'):
|
||||||
if attack.commandline != '':
|
if term.text != None:
|
||||||
attack.commandline += ' '
|
if attack.commandline != '':
|
||||||
attack.commandline += term.text
|
attack.commandline += ' '
|
||||||
|
attack.commandline += term.text
|
||||||
for term in event.find('untrusted').find('termlist'):
|
for term in event.find('untrusted').find('termlist'):
|
||||||
attack.untrusted.append(str(self.readTerm(term)))
|
attack.untrusted.append(str(self.readTerm(term)))
|
||||||
for term in event.find('initialknowledge').find('termlist'):
|
for term in event.find('initialknowledge').find('termlist'):
|
||||||
|
Loading…
Reference in New Issue
Block a user