Permalink
Browse files

...

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/stable@4458 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 4e2dcbf commit 5b8b77e07e505ea380dffe660b7c6193818acab0 @seckar seckar committed Jun 18, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/routing.rb
@@ -226,7 +226,7 @@ def traverse_to_controller(segments, start_at = 0)
mod_name = controller_name = segment = nil
while index < length
- return nil unless /^[A-Za-z][A-Za-z\d_]*$/ =~ (segment = segments[index])
+ return nil unless /\A[A-Za-z][A-Za-z\d_]*\Z/ =~ (segment = segments[index])
index += 1
mod_name = segment.camelize

0 comments on commit 5b8b77e

Please sign in to comment.