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 3c32675
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 @@ -300,8 +300,8 @@ def extract_cve_from_tag(tag: str) -> Optional[str]:
cveset.add(t)

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


functions = {
Expand Down

0 comments on commit 3c32675

Please sign in to comment.