Bugfix in case commandline text is empty.
This commit is contained in:
@@ -295,6 +295,7 @@ 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 term.text != None:
|
||||||
if attack.commandline != '':
|
if attack.commandline != '':
|
||||||
attack.commandline += ' '
|
attack.commandline += ' '
|
||||||
attack.commandline += term.text
|
attack.commandline += term.text
|
||||||
|
|||||||
Reference in New Issue
Block a user