1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Check that filename matches ID in csaf_downloader

This commit is contained in:
Bernhard Herzog 2023-04-25 18:28:07 +02:00
parent 04d2c96be0
commit a92c033a5e

View file

@ -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)