? Failure

User tests: Successful: Unsuccessful:

avatar coling
coling
21 Jan 2019

When the POST fields are supplied as an array but the PHP arg_separator.input
configuration option is not set to & (e.g. if it's set to &) then this
will result in malformed post requests.

This is easily seen in e.g. reCaptcha verification requests.

Summary of Changes

Changed the call to http_build_query() to be explicit about the separator argument to use when constructing the query string.

Testing Instructions

Run Joomla in an environment with arg_separator.input set to '&' and then try and submit a contact request with a reCaptcha configured.

Expected result

The contact form would be submitted and sent.

Actual result

An error is reported "missing-input-reponse" and "Missing field: Captcha"

Documentation Changes Required

None.

avatar coling coling - open - 21 Jan 2019
avatar coling coling - change - 21 Jan 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jan 2019
Category Libraries
avatar laoneo
laoneo - comment - 4 Apr 2022

Sorry that it took so long to respond. As this is a nice change, would be good to change all http_build_query calls in the whole code base. It would be good to have that change in Joomla 4 rather 3. Can you rebase the pr onto the branch 4.2-dev. In the meantime, I'm closing this pr, when ready, please reopen again. Thanks for your help making Joomla better.

avatar laoneo laoneo - change - 4 Apr 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-04-04 13:02:36
Closed_By laoneo
Labels Added: ?
Removed: ?
avatar laoneo laoneo - close - 4 Apr 2022

Add a Comment

Login with GitHub to post a comment