mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Implemented links on directory listings checking
This commit is contained in:
parent
32be3602b6
commit
3bbd37c441
4 changed files with 92 additions and 9 deletions
|
|
@ -186,10 +186,17 @@ func (r *changesReporter) report(p *processor, domain *Domain) {
|
|||
req.Messages = p.badChanges
|
||||
}
|
||||
|
||||
func (r *directoryListingsReporter) report(_ *processor, domain *Domain) {
|
||||
// TODO: Implement me!
|
||||
func (r *directoryListingsReporter) report(p *processor, domain *Domain) {
|
||||
req := r.requirement(domain)
|
||||
_ = req
|
||||
if !p.badDirListings.used() {
|
||||
req.message("No directory listings checked.")
|
||||
return
|
||||
}
|
||||
if len(p.badDirListings) == 0 {
|
||||
req.message("All directory listings are valid.")
|
||||
return
|
||||
}
|
||||
req.Messages = p.badDirListings
|
||||
}
|
||||
|
||||
func (r *integrityReporter) report(p *processor, domain *Domain) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue