mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Merge pull request #365 from csaf-poc/filename-id
Check that filename matches /document/tracking/id
This commit is contained in:
commit
4461bd6892
7 changed files with 52 additions and 0 deletions
|
|
@ -439,6 +439,11 @@ nextAdvisory:
|
|||
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