Skip to content

Conversation

@splitbrain
Copy link
Collaborator

buildURLparams() is used all throughout the code, but its implementation was overly simplistic. This changes it to use the much better builtin http_build_query() function. This allows for correct encoding of array values or deeper nested structures.

buildURLparams() is used all throughout the code, but its implementation
was overly simplistic. This changes it to use the much better builtin
http_build_query() function. This allows for correct encoding of array
values or deeper nested structures.
@splitbrain splitbrain added the ToDo: QuickMerge This PR is either trivial or has not received any feedback in a while and thus should soon be merged label Jan 9, 2025
null values are no longer added as empty parameters.
@Klap-in
Copy link
Collaborator

Klap-in commented Jan 12, 2025

Could someone in plugins still depend on this simplistic behaviour? or would it probably have been an annoyance?

@splitbrain
Copy link
Collaborator Author

Could someone in plugins still depend on this simplistic behaviour

The only difference is that http_build_query will omit parameters set to null instead of passing them as an empty string. I don't think that this should cause any issue. Behavior for simple use should be unchanged otherwise.

@splitbrain splitbrain merged commit 564b5cb into master Jan 13, 2025
18 checks passed
@splitbrain splitbrain deleted the buildquery branch January 13, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ToDo: QuickMerge This PR is either trivial or has not received any feedback in a while and thus should soon be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants