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

Laravel-generated URLs no longer considerated safe #273

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AngryUbuntuNerd
Copy link
Contributor

The Url extension that TwigBridge comes with defines all URLs generated with Laravel helper methods as safe - like route(...), url(...), asset(...) etc.

This causes invalid HTML. For example, in my URL https://www.example.com/search?term=ice+hotel&filter=itinerary the ampersand was not properly encoded to & as in https://www.example.com/search?term=ice+hotel&filter=itinerary.

Attached pull request fixes that.

The Url extension that TwigBridge comes with defines all URLs generated with Laravel helper methods as safe - like route(...), url(...), asset(...) etc.

This causes invalid HTML. For example, in my URL "https://www.example.com/search?term=ice+hotel&filter=itinerary" the ampersand was not properly encoded to "&".
@coveralls
Copy link

coveralls commented Jul 11, 2016

Coverage Status

Coverage remained the same at 25.926% when pulling 4555ee2 on AngryUbuntuNerd:patch-2 into 6226d33 on rcrowe:master.

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