aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2012-02-13 17:58:01 +0900
committerAaron Patterson <aaron.patterson@gmail.com>2012-02-20 16:14:56 -0800
commitdfa33fa3da2e8495f5647c553704297cdc857917 (patch)
tree044acbac96ca6dd7fbe2eea79a81952fc6a652f1 /activesupport/lib/active_support/core_ext
parent42fabd23669605da1ada3e3d03befde9efd39b27 (diff)
downloadrails-dfa33fa3da2e8495f5647c553704297cdc857917.tar.gz
rails-dfa33fa3da2e8495f5647c553704297cdc857917.tar.bz2
rails-dfa33fa3da2e8495f5647c553704297cdc857917.zip
delete vulnerable AS::SafeBuffer#[]
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/string/output_safety.rb6
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 5b39fd6a6a..e3fa528efb 100644
--- a/activesupport/lib/active_support/core_ext/string/output_safety.rb
+++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -98,12 +98,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)