Permalink
Browse files

Merge pull request #9133 from homakov/patch-6

Use \A in Regexps
  • Loading branch information...
2 parents adb8fea + baa240d commit e072f828af01ee4e613a02b8b4d0d3348eb7b902 @rafaelfranca rafaelfranca committed Jan 31, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/metal/redirecting.rb
@@ -88,7 +88,7 @@ def _compute_redirect_to_location(options)
# letters, digits, and the plus ("+"), period ("."), or hyphen ("-")
# characters; and is terminated by a colon (":").
# The protocol relative scheme starts with a double slash "//"
- when %r{^(\w[\w+.-]*:|//).*}
+ when %r{\A(\w[\w+.-]*:|//).*}
options
when String
request.protocol + request.host_with_port + options

0 comments on commit e072f82

Please sign in to comment.