Skip to content

Bug in ReferrerPolicyEnforcedTest logging #9

@kidavspb

Description

@kidavspb

There appears to be a bug in the HTML meta tag validation logic. The log message about an unacceptable referrer policy is triggered when the outcome is SpecificationFullyImplemented.

if (Result.Outcome == TestOutcomes.SpecificationFullyImplemented) {
LogInfo("A referrer policy was specified as an HTML meta tag, but it was not acceptable.", "one of: " + string.Join(", ", safeMetas), value);
}

This seems inconsistent with the similar check for HTTP headers on line 56, which uses SpecificationNotImplemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions