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

Check for caps before loading alert settings #1432

Merged
merged 1 commit into from
Apr 21, 2023
Merged

Conversation

schlessera
Copy link
Contributor

This PR includes the following changes:

Checklist

  • Project documentation has been updated to reflect the changes in this pull request, if applicable.
  • I have tested the changes in the local development environment (see contributing.md).
  • I have added phpunit tests.

@schlessera schlessera added this to the 3.9.3 milestone Apr 21, 2023
@schlessera schlessera requested a review from kasparsd April 21, 2023 01:12
}

// TODO: This returns an empty 'success => true' response. It should probably return a failure response instead - 400 Bad Request?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a borked request should return an HTTP 400 - Bad Request instead of a 200 with a success => true message.

Copy link
Contributor

@kasparsd kasparsd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks!

@kasparsd kasparsd changed the base branch from develop to master April 21, 2023 03:47
@kasparsd kasparsd merged commit ea4a1fa into master Apr 21, 2023
@kasparsd kasparsd deleted the fix/cve-2022-43450 branch April 21, 2023 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants