This project is archived and is in readonly mode.

#162 ✓invalid
Anil Wadghule

Rails not handling links with & correctly

Reported by Anil Wadghule | May 10th, 2008 @ 02:24 PM | in 3.0.2

Certain browsers including Firefox does not convert links with & amp ; in it to &. That causes problems further in rails applications, where params gets created using parse_query_parameters method.

The query strings with & amp ; get parsed as key part e.g. query sting with & amp ;name=david would get converted to params as params[amp;name] instead of params[:name]. Ideally browser should convert & amp ; to & whenever it parses query strings. But that is not the case for current browsers.

This could be serious issue. The rails helper page.redirect_to outputs window.location links to have & amp ; in it. So page.redirect_to having additional params(other than controller, action, id) simply doesn't work.

I have attached related fix diff file.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages