Skip to content

Commit 3c32675

Browse files
committed
Change separator from comma to semicolon to prevent problems with parsing csv data
1 parent 64a3702 commit 3c32675

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

intelmq/bots/parsers/shadowserver/_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def category_or_detail(value: str, row: Dict[str, str]) -> str:
291291

292292

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

@@ -300,8 +300,8 @@ def extract_cve_from_tag(tag: str) -> Optional[str]:
300300
cveset.add(t)
301301

302302
if not (len(cveset)):
303-
return None;
304-
return (','.join(str(c) for c in sorted(cveset)))
303+
return None
304+
return (';'.join(str(c) for c in sorted(cveset)))
305305

306306

307307
functions = {

0 commit comments

Comments
 (0)