mirror of https://github.com/rails/rails
ruby193: String#prepend is also unsafe
This commit is contained in:
parent
9c4fe308b6
commit
87eab595d8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue