Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

C# ValidateTwilioRequestAttribute check flipped? #842

@c17r

Description

@c17r

Perhaps I'm misunderstanding, but this line:

if (!IsValidRequest(context.Request) || !IsTestEnvironment)

Shouldn't that be if (!IsValidRequest(context.Request) && !IsTestEnvironment)? If the request is not valid and we're not in the test environment, then give the 403.

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