This project is archived and is in readonly mode.

#3315 ✓invalid
Roy W. Black

CGI.escape escapes characters that should be allowed in anchors in url_rewriter

Reported by Roy W. Black | October 3rd, 2009 @ 12:18 AM

In 2.3.4 CGI.escape was applied to the value supplied by :anchor in link_to and url_for.

The regex used to character encode disallowed characters in CGI::escape does not allow ? or / which are specfically allowed by the spec.

See http://tools.ietf.org/html/rfc3986#section-3.5

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>

People watching this ticket

Pages