aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorStijn Mathysen <stijn@skylight.be>2010-03-05 08:04:25 +0100
committerJeremy Kemper <jeremy@bitsweat.net>2010-03-05 14:11:21 -0800
commit67512b9489593ddcd1c0c87ba0052380355b5400 (patch)
treea256b14cd7cb5df3a007e0ee435f7c3c3d8020d7 /activesupport/lib
parente472f76e4c86cfc1350f3b769d9ac3d96f062e3f (diff)
downloadrails-67512b9489593ddcd1c0c87ba0052380355b5400.tar.gz
rails-67512b9489593ddcd1c0c87ba0052380355b5400.tar.bz2
rails-67512b9489593ddcd1c0c87ba0052380355b5400.zip
Removed the + sign as an accepted character from the parameterize method, as a + sign is interpreted by the browser as a space, possibly resulting in a "ArgumentError: illegal character in key"
[#4080 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/inflector/transliterate.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/inflector/transliterate.rb b/activesupport/lib/active_support/inflector/transliterate.rb
index 30a9072ee1..236f2eb628 100644
--- a/activesupport/lib/active_support/inflector/transliterate.rb
+++ b/activesupport/lib/active_support/inflector/transliterate.rb
@@ -47,7 +47,7 @@ module ActiveSupport
# replace accented chars with their ascii equivalents
parameterized_string = transliterate(string)
# Turn unwanted chars into the separator
- parameterized_string.gsub!(/[^a-z0-9\-_\+]+/i, sep)
+ parameterized_string.gsub!(/[^a-z0-9\-_]+/i, sep)
unless sep.nil? || sep.empty?
re_sep = Regexp.escape(sep)
# No more than one of the separator in a row.