Skip to content

[Bug]: Trailing slash fails on Laravel's hasValidSignature() method #2

Open
@webmodules-official

Description

What happened?

Hello,

The hasValidSignature() on the Request object is failing because of trailing slash in the POST request.

Schermafbeelding 2024-05-07 om 14 38 11

Maybe add a feature to conditionally exclude certain URI's from appending the trailing slash.

If url()->current() startsWith or contains would be helpful checks.

Thanks for this package, it helped me out.

How to reproduce the bug

See description.

Package Version

dev-main

PHP Version

8.2

Laravel Version

10

Which operating systems does with happen with?

Linux

Notes

No response

Activity

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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions