diff options
author | Akira Matsuda <ronnie@dio.jp> | 2011-10-02 06:21:32 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2011-10-05 15:26:29 +0900 |
commit | 87eab595d86bc9fbb8ad3519ba435f609ca80218 (patch) | |
tree | 0f930e5eb6e123636350fc44672f9925a386a2d9 /activesupport/lib/active_support/core_ext | |
parent | 9c4fe308b6da76711adffeff24d62acb013680ea (diff) | |
download | rails-87eab595d86bc9fbb8ad3519ba435f609ca80218.tar.gz rails-87eab595d86bc9fbb8ad3519ba435f609ca80218.tar.bz2 rails-87eab595d86bc9fbb8ad3519ba435f609ca80218.zip |
ruby193: String#prepend is also unsafe
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/output_safety.rb | 2 |
1 files changed, 1 insertions, 1 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 e61a27176f..5d7f74bb65 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -75,7 +75,7 @@ end module ActiveSupport #:nodoc: class SafeBuffer < String - UNSAFE_STRING_METHODS = ["capitalize", "chomp", "chop", "delete", "downcase", "gsub", "lstrip", "next", "reverse", "rstrip", "slice", "squeeze", "strip", "sub", "succ", "swapcase", "tr", "tr_s", "upcase"].freeze + UNSAFE_STRING_METHODS = ["capitalize", "chomp", "chop", "delete", "downcase", "gsub", "lstrip", "next", "reverse", "rstrip", "slice", "squeeze", "strip", "sub", "succ", "swapcase", "tr", "tr_s", "upcase", "prepend"].freeze alias_method :original_concat, :concat private :original_concat |