httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r1075358 - in /websites/staging/httpd/trunk/content: ./ security/cvejsontohtml.py
Date Thu, 03 Jun 2021 06:31:50 GMT
Author: buildbot
Date: Thu Jun  3 06:31:50 2021
New Revision: 1075358

Log:
Staging update by buildbot for httpd

Modified:
    websites/staging/httpd/trunk/content/   (props changed)
    websites/staging/httpd/trunk/content/security/cvejsontohtml.py

Propchange: websites/staging/httpd/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Jun  3 06:31:50 2021
@@ -1 +1 @@
-1890411
+1890412

Modified: websites/staging/httpd/trunk/content/security/cvejsontohtml.py
==============================================================================
--- websites/staging/httpd/trunk/content/security/cvejsontohtml.py (original)
+++ websites/staging/httpd/trunk/content/security/cvejsontohtml.py Thu Jun  3 06:31:50 2021
@@ -66,7 +66,8 @@ for k,v in sorted(entries.items(), key=l
             else:
                 # Otherwise maybe we started doing things like "<2.7.8"
                 affects.append(ver["version_affected"]+ver["version_value"])
-        affects.sort(reverse=True)
+        # Make a natural order sort (i.e. revrite version like 0002.4.8 and 002.4.38)
+        affects.sort(reverse=True, key=lambda x: '{0:0>8}'.format(x).lower())
         e['affects'] = ", ".join(affects)
         e['timetable'] = [];
         for time in cve["timeline"]:



Mime
View raw message