Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | allow :file to be outside rails root, but anything else must be inside the ↵ | Aaron Patterson | 2016-01-22 | 1 | -0/+17 |
| | | | | | | | | | | rails view directory Conflicts: actionpack/test/controller/render_test.rb actionview/lib/action_view/template/resolver.rb CVE-2016-0752 | ||||
* | Feature detect based on Ruby version. | Aaron Patterson | 2014-05-18 | 1 | -1/+1 |
| | | | | | | | I didn't want to do this, FNM_EXTGLOB is defined on 2.1.x, but Dir.glob returns the wrong value on Ruby less than 2.2.0. Checking for a case-insensitive FS seems too hard, so just check Ruby version Checking for a case-insensitive FS seems too hard, so just check Ruby version. | ||||
* | feature detect for FNM_EXTGLOB for older Ruby. Fixes #15053 | Aaron Patterson | 2014-05-10 | 1 | -5/+21 |
| | |||||
* | use fnmatch to test for case insensitive file systems | Aaron Patterson | 2014-05-09 | 1 | -4/+2 |
| | | | | | | this is due to: https://bugs.ruby-lang.org/issues/5994 | ||||
* | Use the reference for the mime type to get the format | Rafael Mendonça França | 2014-02-18 | 1 | -1/+1 |
| | | | | | | | | Before we were calling to_sym in the mime type, even when it is unknown what can cause denial of service since symbols are not removed by the garbage collector. Fixes: CVE-2014-0082 | ||||
* | Override <%== to always behave as literal text rather than toggling based on ↵ | Jeremy Kemper | 2012-12-03 | 1 | -0/+11 |
| | | | | | | | whether escaping is enabled. Fixes that existing plaintext email templates using <%== unexpectedly flipped to *escaping* HTML when #8235 was merged. Conflicts: actionpack/test/template/template_test.rb | ||||
* | Merge pull request #8235 from tilsammans/dont_escape_actionmailer_when_plaintext | José Valim | 2012-11-16 | 1 | -0/+5 |
| | | | | | | | | Introduce `ActionView::Template::Handlers::ERB.escape_whitelist` Conflicts: actionpack/CHANGELOG.md actionpack/test/template/template_test.rb | ||||
* | format lookup for partials is derived from the format in which the template ↵ | Santiago Pastorino | 2012-02-22 | 1 | -4/+0 |
| | | | | | | is being rendered Closes #5025 part 2 | ||||
* | Reset memoized hash keys when new entry added | Chris Kelly | 2012-02-20 | 1 | -0/+1 |
| | |||||
* | Do not hard code encoding to UTF8 | José Valim | 2011-12-20 | 1 | -5/+1 |
| | |||||
* | don't encode an UTF-8 encoded template | Xu Pan | 2011-12-20 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Revert accidental change from cattr_accessor to class_attribute. | José Valim | 2011-12-08 | 1 | -1/+1 |
| | |||||
* | Some small optimizations and improvements to benchmark code. | José Valim | 2011-12-08 | 1 | -1/+1 |
| | |||||
* | fix exception page when template contains utf-8 and parameters contain utf-8 | lest | 2011-11-30 | 1 | -1/+5 |
| | |||||
* | Fixes for using action view template in isolation. | José Valim | 2011-11-30 | 2 | -2/+11 |
| | |||||
* | minor details revised in a gsub | Xavier Noria | 2011-08-18 | 1 | -1/+1 |
| | | | | | | | | | Regexps have a construct to express alternation of characters, which is character classes. In addition to being the most specific idiom to write this pattern, it reads better without the backslashes. Also, it is better not to use a capture if none is needed. As a side-effect of these changes, the gsub is marginally faster, but speed is not the point of this commit. | ||||
* | Properly escape glob characters. | Aaron Patterson | 2011-08-16 | 1 | -3/+12 |
| | |||||
* | Just remove the sort_locals method | Aaron Patterson | 2011-08-09 | 1 | -12/+1 |
| | |||||
* | the freeze trick does nothing on arrays used as hash keys. | Aaron Patterson | 2011-08-09 | 1 | -2/+1 |
| | |||||
* | use functional style to build a list of template objects | Aaron Patterson | 2011-08-09 | 1 | -9/+12 |
| | |||||
* | refactor the optimized build_query a bit | Aaron Patterson | 2011-08-08 | 1 | -8/+3 |
| | |||||
* | reduce file stats by improving our dir glob pattern | Aaron Patterson | 2011-08-08 | 1 | -1/+1 |
| | |||||
* | hash on the template directory in order to improve cache hits | Aaron Patterson | 2011-08-08 | 1 | -2/+3 |
| | |||||
* | use meaningful names with our variables | Aaron Patterson | 2011-08-08 | 1 | -6/+6 |
| | |||||
* | use binread to read the files | Aaron Patterson | 2011-08-08 | 1 | -1/+2 |
| | |||||
* | Use shorter class-level File methods instead of going through File.stat. | thedarkone | 2011-07-25 | 1 | -1/+1 |
| | |||||
* | remove warning: assigned but unused variable | Santiago Pastorino | 2011-06-08 | 1 | -1/+0 |
| | |||||
* | corrected the ActionMailer tests which broke due to some code removed from ↵ | Josh Kalderimis | 2011-05-25 | 1 | -0/+1 |
| | | | | ActionPack | ||||
* | removed deprecated methods, and related tests, from ActionPack | Josh Kalderimis | 2011-05-24 | 3 | -56/+0 |
| | |||||
* | fixed some ruby 19 warnings, including circular requires and variable name reuse | Josh Kalderimis | 2011-05-21 | 1 | -1/+0 |
| | |||||
* | Optimize the most common resolver case. | José Valim | 2011-05-09 | 1 | -13/+26 |
| | |||||
* | No need for replace. | José Valim | 2011-05-09 | 1 | -12/+11 |
| | |||||
* | Added activesupport requires for Array.wrap in previously modified files | Burke Libbey | 2011-05-07 | 1 | -0/+1 |
| | |||||
* | Remove redundant check for is_a?(String) | Burke Libbey | 2011-05-06 | 1 | -1/+1 |
| | |||||
* | Added a test for MissingTemplate change, and changed to use Array.wrap() as | Burke Libbey | 2011-05-06 | 1 | -1/+1 |
| | | | | requested by josevalim. | ||||
* | Made ActionView::MissingTemplate#initialize optionally accept a single string | Burke Libbey | 2011-05-06 | 1 | -0/+1 |
| | | | | prefix to be converted to an array as in ActionView::PathSet#find_all. | ||||
* | Yo dawg, I heard you like streaming. So I put a fiber, inside a block, ↵ | José Valim | 2011-04-16 | 1 | -14/+4 |
| | | | | inside a body, so you can stream. | ||||
* | Buffer should be an option passed down to template rendering. | José Valim | 2011-04-16 | 1 | -1/+1 |
| | |||||
* | removes a remaining reference to .rjs in template resolver's RDoc | Xavier Noria | 2011-04-13 | 1 | -1/+1 |
| | |||||
* | removes the RJS template handler | Xavier Noria | 2011-04-13 | 2 | -15/+0 |
| | |||||
* | s/ERb/ERB/g | Akira Matsuda | 2011-04-03 | 1 | -1/+1 |
| | | | | | The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib. http://www2a.biglobe.ne.jp/~seki/ruby/erb.html | ||||
* | fixes a couple of regexps, the suite showed warnings about them | Xavier Noria | 2011-03-27 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | A couple of things worth mentioning here: - "{" is a metacharacter, should be escaped if it is meant to match a "{". The code worked, though, because the regexp engine is tolerant to this, but issued warnings. - gsub accepts a string as first argument. That's the best idiom to use when your pattern has no metacharacters, since gsub interprets the string as an exact substring to look for, rather than a regexp. The benefit is that your pattern is crystal clear and needs no backslashes. | ||||
* | Improved resolver docs a bit | José Valim | 2011-03-19 | 1 | -2/+10 |
| | |||||
* | [action_view] docs for FileSystemResolver | Chris Kowalik | 2011-03-20 | 1 | -2/+30 |
| | |||||
* | [action_view] added custom patterns to template resolver | Chris Kowalik | 2011-03-20 | 1 | -18/+49 |
| | |||||
* | Add additional text to NotImplementedErrors [#6328 state:resolved] | Mike Gehard | 2011-03-12 | 1 | -1/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Action Pack typos. | R.T. Lechow | 2011-03-05 | 1 | -1/+1 |
| | |||||
* | reduce string append funcalls | Aaron Patterson | 2011-02-08 | 1 | -3/+3 |
| | |||||
* | Ensure render is case sensitive even on systems with case-insensitive ↵ | José Valim | 2011-02-08 | 1 | -3/+12 |
| | | | | | | filesystems. This fixes CVE-2011-0449 | ||||
* | Merge branch 'template_error' into merge | Aaron Patterson | 2011-01-18 | 1 | -4/+1 |
|\ | | | | | | | | | | | * template_error: Ensure original exception message is present in both Template::Error#message and Template::Error#inspect. ActiveSupport::Deprecation.silence no longer needed. |