allissues += "<li>This issue was also addressed in "+ ", ".join( also)
allissues += "</ul></dd>"
-allissues += "</dl>"
preface = "<!-- do not edit this file it is autogenerated, edit vulnerabilities.xml -->"
if options.base:
- # for now don't put the link to the per-base page on main page until it's tested
+ # for now don't put the link to the per-base page on main page until it's ready to go live
bases = []
for base in allyourbase(dom):
if (options.base and base in options.base):
- bases.append("%s " %(base))
+ bases.append("%s" %(base))
else:
- bases.append( "<a href=\"vulnerabilities-%s.html\">%s</a> " %(base,base))
+ bases.append( "<a href=\"vulnerabilities-%s.html\">%s</a>" %(base,base))
preface += "Show issues fixed only in OpenSSL " + ", ".join(bases)
+ if (options.base):
+ preface += ", or <a href=\"vulnerabilities.html\">all versions</a>"
preface += "<h2>Fixed in OpenSSL %s</h2>" %(options.base)
if len(allyears)>1: # If only vulns in this year no need for the year table of contents
preface += "<p><a name=\"toc\">Jump to year: </a>" + ", ".join( "<a href=\"#y%s\">%s</a>" %(year,year) for year in allyears)
preface += "</p>"
-if "<dt>" in allissues:
- preface += allissues
+if allissues != "":
+ preface += allissues + "</dl>"
else:
preface += "No vulnerabilities"