You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i[0] is problematic as it is just grabbing one character from a version which could be None... I reckon this is to fetch the major version of tomcat, but then version 10 is out and is taking two characters making this code moot.
This should be updated to handle versions correctly without using a magic [0] instead, but proper version parsing with univers
The text was updated successfully, but these errors were encountered:
In https://github.com/nexB/vulnerablecode/blob/24e33966bae6124e381556e520e18f1129c352fc/vulnerabilities/importers/apache_tomcat.py#L65
i[0]
is problematic as it is just grabbing one character from a version which could be None... I reckon this is to fetch the major version of tomcat, but then version 10 is out and is taking two characters making this code moot.This should be updated to handle versions correctly without using a magic [0] instead, but proper version parsing with
univers
The text was updated successfully, but these errors were encountered: