Skip to content

[5.6] Default to an empty string when validating the signature hash query parameter#23721

Merged
taylorotwell merged 1 commit intolaravel:5.6from
hmazter:5.6-signature-query-default
Mar 28, 2018
Merged

[5.6] Default to an empty string when validating the signature hash query parameter#23721
taylorotwell merged 1 commit intolaravel:5.6from
hmazter:5.6-signature-query-default

Conversation

@hmazter
Copy link
Copy Markdown
Contributor

@hmazter hmazter commented Mar 28, 2018

This PR is a follow up to #23618 fixing the problem explained in #23618 (comment)

When validating a signature and the signature query param is not present in the request, hash_equals will throw an ErrorException since it expects a string to compare but $request->query('signature') will return null

@taylorotwell taylorotwell merged commit 30d2f7f into laravel:5.6 Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants