Skip to content

Commit

Permalink
Change separator from comma to semicolon to prevent problems with par…
Browse files Browse the repository at this point in the history
…sing csv data
  • Loading branch information
th-certbund committed Feb 6, 2024
1 parent 64a3702 commit 09f69fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intelmq/bots/parsers/shadowserver/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def category_or_detail(value: str, row: Dict[str, str]) -> str:


def extract_cve_from_tag(tag: str) -> Optional[str]:
""" Returns a string with a sorted comma-separated list of CVEs or None if no CVE found in tag. """
""" Returns a string with a sorted semicolon-separated list of CVEs or None if no CVE found in tag. """
cveset = set()
tags = tag.split(";")

Expand All @@ -301,7 +301,7 @@ def extract_cve_from_tag(tag: str) -> Optional[str]:

if not (len(cveset)):
return None;
return (','.join(str(c) for c in sorted(cveset)))
return (';'.join(str(c) for c in sorted(cveset)))


functions = {
Expand Down

0 comments on commit 09f69fc

Please sign in to comment.