From 9f754e801f82aad8db760786ad3eb72cc7993108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Sun, 16 Jun 2013 22:02:29 -0300 Subject: Compare host scheme using case-insensitive regexp Before: image_tag("HTTP://google.com") # => "\"Google\"" image_tag("http://google.com") # => "\"Google\"" After: image_tag("HTTP://google.com") # => "\"Google\"" image_tag("http://google.com") # => "\"Google\"" Backport of #10969 --- actionpack/CHANGELOG.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'actionpack/CHANGELOG.md') diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 9d50342867..585cad24db 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,5 +1,26 @@ ## unreleased ## +* Use a case insensitive URI Regexp for #asset_path. + + This fix a problem where the same asset path using different case are generating + different URIs. + + Before: + + image_tag("HTTP://google.com") + # => "\"Google\"" + image_tag("http://google.com") + # => "\"Google\"" + + After: + + image_tag("HTTP://google.com") + # => "\"Google\"" + image_tag("http://google.com") + # => "\"Google\"" + + *David Celis + Rafael Mendonça França* + * Fix explicit names on multiple file fields. If a file field tag has the multiple option, it is turned into an array field (appending `[]`), but if an explicit name is passed to `file_field` the `[]` is not -- cgit v1.2.3