mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +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
|
||||
}
|
||||
|
||||
if err := util.IDMatchesFilename(d.eval, doc, filename); err != nil {
|
||||
log.Printf("Ignoring %s: %s.\n", file.URL(), err)
|
||||
continue
|
||||
}
|
||||
|
||||
// Validate against remote validator
|
||||
if d.validator != nil {
|
||||
rvr, err := d.validator.Validate(doc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue