Skip to content

Commit

Permalink
fix: checksum algoirthm validation
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison committed Oct 6, 2024
1 parent b928830 commit 4e9ceef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib4sbom/data/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def set_filesanalysis(self, analysis):

def set_checksum(self, type, value):
# Only store valid checksums
if self._valid_checksum(value) and self._valid_algorithm(type):
if self._valid_checksum(value) and self._valid_algorithm(type.strip()):
# Allow multiple entries
checksum_entry = [type.strip(), value.lower()]
if "checksum" in self.package:
Expand Down

0 comments on commit 4e9ceef

Please sign in to comment.