mirror of
https://github.com/nmap/nmap.git
synced 2026-10-25 05:13:04 +00:00
Avoid a crash when description is a list. http://seclists.org/nmap-dev/2017/q1/176
This commit is contained in:
parent
dcac460ad6
commit
73963022dd
1 changed files with 4 additions and 1 deletions
|
|
@ -438,7 +438,10 @@ class CommandProfile (Profile, object):
|
|||
return command_string
|
||||
|
||||
def get_description(self, profile):
|
||||
return self._get_it(profile, 'description')
|
||||
desc = self._get_it(profile, 'description')
|
||||
if isinstance(desc, list):
|
||||
desc = " ".join(desc)
|
||||
return desc
|
||||
|
||||
def set_command(self, profile, command=''):
|
||||
self._set_it(profile, 'command', command)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue