mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
ruby193: String#prepend is also unsafe
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user