aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-06-16 22:02:29 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-06-16 22:05:26 -0300
commit9f754e801f82aad8db760786ad3eb72cc7993108 (patch)
tree87789c45061ec571534ca33c79228c921e6e83dc /actionpack/lib
parent7092467f064832907f8de53b9da659b6de10d7e8 (diff)
downloadrails-9f754e801f82aad8db760786ad3eb72cc7993108.tar.gz
rails-9f754e801f82aad8db760786ad3eb72cc7993108.tar.bz2
rails-9f754e801f82aad8db760786ad3eb72cc7993108.zip
Compare host scheme using case-insensitive regexp
Before: image_tag("HTTP://google.com") # => "<img alt=\"Google\" src=\"/assets/HTTP://google.com\" />" image_tag("http://google.com") # => "<img alt=\"Google\" src=\"http://google.com\" />" After: image_tag("HTTP://google.com") # => "<img alt=\"Google\" src=\"HTTP://google.com\" />" image_tag("http://google.com") # => "<img alt=\"Google\" src=\"http://google.com\" />" Backport of #10969
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/asset_paths.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/asset_paths.rb b/actionpack/lib/action_view/asset_paths.rb
index c192d3704e..636a37b699 100644
--- a/actionpack/lib/action_view/asset_paths.rb
+++ b/actionpack/lib/action_view/asset_paths.rb
@@ -43,7 +43,7 @@ module ActionView
end
def is_uri?(path)
- path =~ %r{^[-a-z]+://|^(?:cid|data):|^//}
+ path =~ %r{^[-a-z]+://|^(?:cid|data):|^//}i
end
private