1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/lib/action_view/template
Jonathan Hefner 897cdc721e Fix escaping in OptimizedFileSystemResolver
`OptimizedFileSystemResolver` builds a regular expression to match view
template paths.  Prior to this patch, only file globbing special
characters were escaped when building this regular expression, leaving
other regular expression special characters unescaped.

This patch properly escapes all regular expression special characters,
and adds test coverage for paths that include these characters.

Fixes #37107.
2019-09-09 12:20:02 -05:00
..
handlers Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
sources Add ActionView::Template::Sources::File 2019-04-04 15:07:14 -07:00
error.rb Empty array instead of nil for source_extract 2019-07-14 15:04:25 -04:00
handlers.rb active_support/deprecation has to be already required via active_support/rails.rb 2019-07-12 18:34:07 +09:00
html.rb active_support/deprecation has to be already required via active_support/rails.rb 2019-07-12 18:34:07 +09:00
inline.rb Add a finalizer to inline templates 2019-02-22 17:59:55 -08:00
raw_file.rb [ci skip] Updated the doc after renaming Template::File -> Template::RawFile in #35826 2019-04-02 14:03:43 +05:30
resolver.rb Fix escaping in OptimizedFileSystemResolver 2019-09-09 12:20:02 -05:00
sources.rb Add ActionView::Template::Sources::File 2019-04-04 15:07:14 -07:00
text.rb Templates have one format 2019-02-25 13:18:44 -08:00
types.rb Fix broken doc layout for action_view [ci skip] 2017-08-27 09:12:19 +09:00