diff options
author | Eduard Bondarenko <edbond@gmail.com> | 2009-05-27 14:53:05 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-27 14:53:05 -0500 |
commit | 61c471eebb3718a3ef5741e1e4d0974be7483290 (patch) | |
tree | cbcd933b70f82bcd850b9c391b4ea37b00ae3d54 /actionpack/lib/action_controller/routing | |
parent | bb8e5843f32b13e759da51a4713a31b23ebcac6d (diff) | |
download | rails-61c471eebb3718a3ef5741e1e4d0974be7483290.tar.gz rails-61c471eebb3718a3ef5741e1e4d0974be7483290.tar.bz2 rails-61c471eebb3718a3ef5741e1e4d0974be7483290.zip |
Add % to RESERVED_PCHAR [#2574 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/lib/action_controller/routing')
-rw-r--r-- | actionpack/lib/action_controller/routing/segments.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/routing/segments.rb b/actionpack/lib/action_controller/routing/segments.rb index 4f936d51d2..2603855476 100644 --- a/actionpack/lib/action_controller/routing/segments.rb +++ b/actionpack/lib/action_controller/routing/segments.rb @@ -1,7 +1,7 @@ module ActionController module Routing class Segment #:nodoc: - RESERVED_PCHAR = ':@&=+$,;' + RESERVED_PCHAR = ':@&=+$,;%' SAFE_PCHAR = "#{URI::REGEXP::PATTERN::UNRESERVED}#{RESERVED_PCHAR}" if RUBY_VERSION >= '1.9' UNSAFE_PCHAR = Regexp.new("[^#{SAFE_PCHAR}]", false).freeze |