Skip to content

Ensure parameters expected to be provided as json are handled correctly #20536

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

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Mar 30, 2023

Description:

Common::getRequestVar allows the type to be expected as json. In this case we currently always try to perform an json_decode. This might end in a fatal error on newer php versions in case the parameter was actually provided as array.

refs matomo-org/plugin-QueuedTracking#194
fixes #20361

Review

@sgiehl sgiehl added the Needs Review PRs that need a code review label Mar 30, 2023
@sgiehl sgiehl added this to the 5.0.0 milestone Mar 30, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Apr 8, 2023

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Apr 8, 2023
@sgiehl sgiehl requested a review from bx80 April 12, 2023 15:17
Copy link
Contributor

@bx80 bx80 left a comment

Choose a reason for hiding this comment

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

@bx80 bx80 merged commit 194496b into 5.x-dev Apr 13, 2023
@bx80 bx80 deleted the jsonparams branch April 13, 2023 00:05
@bx80 bx80 added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. and removed Stale The label used by the Close Stale Issues action labels Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Development

Successfully merging this pull request may close these issues.

Invalid data sent in uadata array, causes complete tracking failure in Queued Tracking
2 participants