From 73963022ddfcf3137f14b521dc4f5e9a83078f9d Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 6 Mar 2017 23:18:08 +0000 Subject: [PATCH] Avoid a crash when description is a list. http://seclists.org/nmap-dev/2017/q1/176 --- zenmap/zenmapCore/UmitConf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zenmap/zenmapCore/UmitConf.py b/zenmap/zenmapCore/UmitConf.py index 12fc39e6e..6d7fce0bd 100644 --- a/zenmap/zenmapCore/UmitConf.py +++ b/zenmap/zenmapCore/UmitConf.py @@ -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)