Browse code

add support for unfixed apps

Hanno Böck authored on14/07/2008 10:36:34
Showing1 changed files
... ...
@@ -42,8 +42,12 @@ def vulnprint(appname, version, safeversion, vuln, vfilename, subdir, fancy):
42 42
     if fancy:
43 43
         print _("Directory: %(appdir)s") % vars()
44 44
         if safeversion!="ok":
45
-            print _("Vulnerable %(appname)s %(version)s found, please update to " \
46
-                    "%(safeversion)s or above.") % vars()
45
+            if safeversion!="":
46
+                print _("Vulnerable %(appname)s %(version)s found, please update to " \
47
+                        "%(safeversion)s or above.") % vars()
48
+            else:
49
+                print _("Vulnerable %(appname)s %(version)s found, no fixed version available." \
50
+                        ) % vars()
47 51
             if vuln[:3] == "CVE":
48 52
                 print _("http://cve.mitre.org/cgi-bin/cvename.cgi?name=%(vuln)s") \
49 53
                         % vars()