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

[6.x] Fix ConfigurationUrlParser query decoding #33340

Merged
merged 1 commit into from
Jun 25, 2020
Merged

[6.x] Fix ConfigurationUrlParser query decoding #33340

merged 1 commit into from
Jun 25, 2020

Conversation

Gounlaf
Copy link
Contributor

@Gounlaf Gounlaf commented Jun 25, 2020

Function parse_str is used to parse the query part of URL; it expects a raw string (non-decoded).
But parseUrl was already doing decoding URL components.

It affects 5.8 to 7.x.

An URL like this should works: mysql://foo:bar%25bar@localhost/baz?timezone=%2B00%3A00
An URL like this should't because the query part is not encoded: mysql://foo:bar%25bar@localhost/baz?timezone=+00:00

@driesvints driesvints changed the title ConfigurationUrlParser: fix query decoding [6.x] ConfigurationUrlParser: fix query decoding Jun 25, 2020
@GrahamCampbell GrahamCampbell changed the title [6.x] ConfigurationUrlParser: fix query decoding [6.x] Fix ConfigurationUrlParser query decoding Jun 25, 2020
@taylorotwell taylorotwell merged commit 7400e57 into laravel:6.x Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants