mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
Check that filename matches ID in csaf_downloader
This commit is contained in:
parent
04d2c96be0
commit
a92c033a5e
1 changed files with 5 additions and 0 deletions
|
|
@ -368,6 +368,11 @@ func (d *downloader) downloadFiles(label csaf.TLPLabel, files []csaf.AdvisoryFil
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := util.IDMatchesFilename(d.eval, doc, filename); err != nil {
|
||||||
|
log.Printf("Ignoring %s: %s.\n", file.URL(), err)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// Validate against remote validator
|
// Validate against remote validator
|
||||||
if d.validator != nil {
|
if d.validator != nil {
|
||||||
rvr, err := d.validator.Validate(doc)
|
rvr, err := d.validator.Validate(doc)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue