This project is archived and is in readonly mode.

#4080 ✓committed
stijn (at skylight)

Rails inflector "parameterize" vs. + signs

Reported by stijn (at skylight) | March 1st, 2010 @ 08:10 PM | in 2.3.6

I was wondering if it wouldn't be better to not include + signs into the rails "parameterize" as it is used to "replace special characters in a string so that it may be used as part of a ‘pretty’ URL.".

The method can be found in in

active_support/inflector

The regional expression that is used allows + signs;

      parameterized_string.gsub!(/[^a-z0-9\-_\+]+/i, sep)

However the + sign can be wrongly identified by the browser, not as a + sign, but as a space. Possibly resulting in errors like;

      ArgumentError: illegal character in key

I'll be happy to write a patch and run it through its associated tests if that would help!

Thanks to all you guys for delivering the best framework ever!

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>

Tags

Referenced by

Pages