Skip to content

Change htmlentities to urlencode for link #570

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

Merged
merged 1 commit into from
Apr 24, 2012
Merged

Change htmlentities to urlencode for link #570

merged 1 commit into from
Apr 24, 2012

Conversation

JulienTant
Copy link

Using htmlentities is not right. You should use urlencode() instead.

htmlentities('à-propos') -> à-propos ( invalid in URL )
urlencode('à-propos') -> %c3%a0-propos ( valid in URL )

Note that http://website.com/à-propos is valid too...

Signed-off-by: Julien TANT julien@ao6-labs.eu

Signed-off-by: Julien TANT <julien@ao6-labs.eu>
taylorotwell added a commit that referenced this pull request Apr 24, 2012
Change htmlentities to urlencode for link
@taylorotwell taylorotwell merged commit 8e05530 into laravel:master Apr 24, 2012
zoe-edwards pushed a commit to zoe-edwards/laravel that referenced this pull request Oct 14, 2013
…s-to-array

Attributes defaults to empty array
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.

4 participants