This project is archived and is in readonly mode.
[] should be escaped in urls
Reported by gucki | September 23rd, 2010 @ 04:19 PM | in 3.1
using rails3 and html5, user_path(:hash => {:a => 1}) outputs "/users?has[a]=1". this causes w3c validator errors, because [] (and possibly a few more special chars) have to be escaped in urls.
error message: Characters should be represented in NFC and spaces should be escaped as %20.
Comments and changes to this ticket
-
gucki September 23rd, 2010 @ 04:35 PM
It seems the error is in the url_helpers. They are using html_escape even for the href argument. I suggest to use CGI.escape here instead, as html_escape is not the right thing. The error also occurs in other url helpers, ex #form_for etc.
Ex: http://github.com/rails/rails/blob/master/actionpack/lib/action_vie...
-
gucki September 23rd, 2010 @ 04:45 PM
- Tag changed from url helpers, rails3.0.0 to url helpers, patch, rails3.0.0
-
Santiago Pastorino October 11th, 2010 @ 12:02 AM
- State changed from new to open
- Milestone cleared.
- Importance changed from to Low
-
Ryan Bigg October 16th, 2010 @ 02:32 AM
- Tag changed from sheepskin boots, url helpers, patch, rails3.0.0 to patch rails3.0.0 url helpers
Automatic cleanup of spam.
-
Santiago Pastorino November 7th, 2010 @ 12:27 PM
gucki can you please provide a patch again?, the one you sent is deleted.
-
Santiago Pastorino November 19th, 2010 @ 01:33 AM
- State changed from open to resolved
- Milestone set to 3.1
-
dsfsfsd3t December 15th, 2010 @ 08:40 AM
Windows Server 2003 Datacenter R2 SP2 (32 bit)
Windows Server 2003 Datacenter R2 SP2 (64 bit)
Windows Server 2003 Enterprise R2 SP2 (32 bit)
Windows Server 2003 Enterprise R2 SP2 (64 bit)
Windows Server 2003 Standard R2 SP2 (64 bit)
Windows Server 2003 Standart R2 SP2 (32 bit)Microsoft Windows Small Business Server 2008 Standard
Windows Server 2008 R2 Datacenter (64 bit)
Windows Server 2008 R2 Enterprise (64 bit)
Windows Server 2008 R2 Standard (64 bit)
Windows Small Business Server 2008 Premium
Windows Web Server 2008 R2 (64 bit)Microsoft Windows Vista Business with SP2 (32bit)
Microsoft Windows Vista Business with SP2 (64bit)
Microsoft Windows Vista Home Basic with SP2 (32bit)
Microsoft Windows Vista Home Basic with SP2 (64 bit)
Microsoft Windows Vista Home Premium with SP2 (32 bit)
Microsoft Windows Vista Home Premium with SP2 (64 bit)
Microsoft Windows Vista Ultimate with SP2 (32bit)
Microsoft Windows Vista Ultimate with SP2 (64bit)
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>