aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/sanitize_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-2/+2
| | | | 's/[ \t]*$//' -i {} \;)
* adds missing requires for Object#tryXavier Noria2010-08-091-0/+1
|
* Concernify SanitizeHelper and TextHelper so including TextHelper correctly ↵wycats2010-08-041-0/+1
| | | | include SanitizeHelper and extends its ClassMethods
* Fixed many references to the old config/environment.rb and Rails::InitializerBenjamin Quorning2010-07-131-14/+14
|
* Added titles and description.Rizwan Reza2010-06-161-5/+11
|
* edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-141-1/+1
| | | | not "ActiveRecord"
* For performance reasons, you can no longer call html_safe! on Strings. ↵Yehuda Katz2010-01-311-10/+2
| | | | | | | | | | | | Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self). * Additionally, instead of doing concat("</form>".html_safe), you can do safe_concat("</form>"), which will skip both the flag set, and the flag check. * For the first pass, I converted virtually all #html_safe!s to #html_safe, and the tests pass. A further optimization would be to try to use #safe_concat as much as possible, reducing the performance impact if we know up front that a String is safe.
* Merge docrailsPratik Naik2010-01-171-1/+1
|
* All AD modules are "deferrable"Joshua Peek2009-12-221-0/+1
|
* Switch to on-by-default XSS escaping for rails.Michael Koziarski2009-10-081-2/+10
| | | | | | | | | | | | This consists of: * String#html_safe! a method to mark a string as 'safe' * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it * Calls to String#html_safe! throughout the rails helpers * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB) * New ERB implementation based on erubis which uses a SafeBuffer instead of a String Hat tip to Django for the inspiration.
* prefer autoloaded html scannerJoshua Peek2008-11-241-1/+0
|
* Autoload HTML::Document and sanitizersJeremy Kemper2008-11-231-10/+1
|
* Require missing libraries and check for defined ActionController constant so ↵Joshua Peek2008-08-261-1/+10
| | | | ActionView can be used standalone
* Include all helpers into ActionView::HelperJoshua Peek2008-08-251-31/+54
|
* Merge with docrails.Pratik Naik2008-07-161-1/+1
|
* Merge docrails.Pratik Naik2008-05-251-15/+16
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Added not to sanitize helper docs that it doesn't guarantee well-formed markup.Michael Schuerig2008-05-121-0/+5
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#166 state:resolved]
* Improve documentation coverage and markupXavier Noria2008-05-021-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Refactor sanitizer helpers into HTML classes and make it easy to swap them ↵Rick Olson2007-11-261-155/+53
| | | | | | out with custom implementations. Closes #10129. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extracted sanitization methods from TextHelper to SanitizeHelper [DHH] ↵David Heinemeier Hansson2007-10-101-0/+325
Changed SanitizeHelper#sanitize to only allow the custom attributes and tags when specified in the call [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7825 5ecf4fe2-1ee6-0310-87b1-e25e094e27de