redirect_to() using & instead of &
Reported by Fabrice Luraine | January 31st, 2011 @ 07:22 PM
Because it uses url_for
to construct url, it
escapes &
in &
, so target url
might be broken.
url_for
is an html helper, so it's better to keep
its output html escaped. The best solution will be to decode it
before using it in redirect_to()
[Bug submitted in github: https://github.com/sofadesign/limonade/issues#issue/14]
Comments and changes to this ticket
-
Fabrice Luraine January 31st, 2011 @ 07:27 PM
We can use builtin
htmlspecialchars_decode()
for PHP5.1.x > but we'll write our own html special chars decode function for PHP5.0.x versions -
Fabrice Luraine February 25th, 2011 @ 08:54 AM
- State changed from open to resolved
(from [63715246dcd74218b4b66fb7dafa25502db8b8d3]) using htmlspecialchars_decode on uri when sending Location header [#49 state:resolved] https://github.com/sofadesign/limonade/commit/63715246dcd74218b4b66...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Limonade is a PHP micro-framework.
People watching this ticket
Referenced by
- 49 redirect_to() using & instead of & (from [63715246dcd74218b4b66fb7dafa25502db8b8d3]) using h...