From 8139de2812a316aad41c009d03b2d1e0dfb6770c Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 29 May 2007 06:40:33 +0000 Subject: Routing: drop semicolon and comma as route separators. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6888 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/routing.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 34041cc0fc..74f09f815c 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -247,8 +247,7 @@ module ActionController # end # module Routing - # TODO: , (comma) should be an allowed path character. - SEPARATORS = %w( / ; . , ? ) + SEPARATORS = %w( / . ? ) HTTP_METHODS = [:get, :head, :post, :put, :delete] @@ -549,8 +548,7 @@ module ActionController end class Segment #:nodoc: - # TODO: , (comma) should be an allowed path character. - RESERVED_PCHAR = ':@&=+$' + RESERVED_PCHAR = ':@&=+$,;' UNSAFE_PCHAR = Regexp.new("[^#{URI::REGEXP::PATTERN::UNRESERVED}#{RESERVED_PCHAR}]", false, 'N').freeze attr_accessor :is_optional -- cgit v1.2.3