Skip to content

Bug in ReferrerPolicyEnforcedTest logging #9

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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