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

[5.1] Change redirect url (from headers['Location']) from array to string #43734

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

janschoenherr
Copy link
Contributor

@janschoenherr janschoenherr commented Jul 3, 2024

Fixes the error: parse_url(): Argument #1 ($url) must be of type string, array given

Summary of Changes

This PR fixes the same issue that was fixed for the CurlTransport:
a406543

Pull Request for Issue ##42769.

From the Laminas\Diactoros\MessageTrait::getHeaders() doc

@return array Returns an associative array of the message's headers. Each key MUST be a header name, and each value MUST be an array of strings.

PR https://github.com/joomla/joomla-cms/pull/43130/files#diff-eaa7b598c95837c0e0230852d37007e28938d2bfe13048b42462ce106803447fL133 fixes the same issue, but this PR isolates the fix for the above mentioned error.

Testing Instructions

The same testing Instructions as in #42769 but instead of 'curl' use 'socket'.

Actual result BEFORE applying this Pull Request

error: parse_url(): Argument #1 ($url) must be of type string, array given

Expected result AFTER applying this Pull Request

no error

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@LadySolveig LadySolveig added this to the Joomla! 5.1.2 milestone Jul 3, 2024
@bembelimen
Copy link
Contributor

I have tested this item ✅ successfully on e13b1cf


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43734.

@LadySolveig LadySolveig merged commit 807d71d into joomla:5.1-dev Jul 3, 2024
3 of 4 checks passed
@LadySolveig
Copy link
Contributor

Thank you @janschoenherr 🚀 and also for testing @bembelimen

@LadySolveig LadySolveig changed the title Change redirect url (from headers['Location']) from array to string [5.1] Change redirect url (from headers['Location']) from array to string Jul 3, 2024
brbrbr pushed a commit to brbrbr/joomla-cms that referenced this pull request Jul 3, 2024
…oomla#43734)

* Change redirect url (from headers['Location']) from array to string
* Update SocketTransport.php
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.

None yet

4 participants