Skip to content

Commit

Permalink
Mark scrub as an unsafe method on SafeBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Dec 1, 2020
1 parent cce7006 commit d04e71a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ module ActiveSupport #:nodoc:
class SafeBuffer < String
UNSAFE_STRING_METHODS = %w(
capitalize chomp chop delete delete_prefix delete_suffix
downcase lstrip next reverse rstrip slice squeeze strip
downcase lstrip next reverse rstrip scrub slice squeeze strip
succ swapcase tr tr_s unicode_normalize upcase
)

Expand Down
1 change: 1 addition & 0 deletions activesupport/test/safe_buffer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def test_titleize
next: nil,
reverse: nil,
rstrip: nil,
scrub: nil,
slice: "foo",
squeeze: nil,
strip: nil,
Expand Down

0 comments on commit d04e71a

Please sign in to comment.