diff options
-rw-r--r-- | actionpack/lib/action_dispatch/http/filter_redirect.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/filter_redirect.rb b/actionpack/lib/action_dispatch/http/filter_redirect.rb index bf79963351..6ced03ab2c 100644 --- a/actionpack/lib/action_dispatch/http/filter_redirect.rb +++ b/actionpack/lib/action_dispatch/http/filter_redirect.rb @@ -28,7 +28,7 @@ module ActionDispatch if String === filter location.include?(filter) elsif Regexp === filter - location.match(filter) + location =~ filter end end end |