diff options
author | Akira Matsuda <ronnie@dio.jp> | 2012-02-13 17:58:01 +0900 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-20 16:02:45 -0800 |
commit | 71d8c77e5ac74c2aa20eff6b3d6a8b8ca24114d7 (patch) | |
tree | b88264a8455be485f8fe11be969f629b7127171a /activesupport/lib | |
parent | dcf0964d64903605c6dc9d2e149ca0e45bd2aea2 (diff) | |
download | rails-71d8c77e5ac74c2aa20eff6b3d6a8b8ca24114d7.tar.gz rails-71d8c77e5ac74c2aa20eff6b3d6a8b8ca24114d7.tar.bz2 rails-71d8c77e5ac74c2aa20eff6b3d6a8b8ca24114d7.zip |
delete vulnerable AS::SafeBuffer#[]
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/output_safety.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb index 20c2befc57..7f158369f4 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -103,12 +103,6 @@ module ActiveSupport #:nodoc: end end - def[](*args) - new_safe_buffer = super - new_safe_buffer.instance_eval { @dirty = false } - new_safe_buffer - end - def safe_concat(value) raise SafeConcatError if dirty? original_concat(value) |