Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
webmodules-official opened this issue May 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@webmodules-official
Copy link

webmodules-official commented May 7, 2024

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

@webmodules-official webmodules-official added the bug Something isn't working label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant