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

Use rawurldecode instead of urldecode for route argument #2414

Closed
wants to merge 1 commit into from
Closed

Use rawurldecode instead of urldecode for route argument #2414

wants to merge 1 commit into from

Conversation

juherr
Copy link

@juherr juherr commented Mar 2, 2018

urldecode is used in order to decode part of the route arguments but according to the php documentation:

Plus symbols ('+') are decoded to a space character.

According to the RFC-1866, the '+' to space conversion is only valid after the '?' part of the url: https://stackoverflow.com/a/40292260/4234729

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.071% when pulling a0d7c82 on juherr:patch-1 into d0d9655 on slimphp:3.x.

@juherr
Copy link
Author

juherr commented Mar 12, 2018

@slimphp Hi, can I have any feedback on my PR?
Currently, I am converting space to '+' which is not really logic.

Travis is failing on php7.1 without any reason.

@danopz
Copy link
Member

danopz commented Mar 12, 2018

Duplicate + BC break for Slim 3: #2000

@juherr
Copy link
Author

juherr commented Mar 12, 2018

@danopz Oh! I didn't find the duplication, sorry!

@juherr juherr closed this Mar 12, 2018
@juherr juherr deleted the patch-1 branch March 12, 2018 11:22
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.

None yet

3 participants