Skip to content

Pathname#taint and #untaint remain in Ruby 3.2 #28

@pocke

Description

@pocke

Pathname#taint and #untaint displays a warning to notice that we will remove them in Ruby 3.2, but they still exist.

$ ruby -v -rpathname -e 'Pathname("a").taint; Pathname("a").untaint'
ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin21]
-e:1: warning: Pathname#taint is deprecated and will be removed in Ruby 3.2.
-e:1: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.

rb_define_method(rb_cPathname, "taint", path_taint, 0);
rb_define_method(rb_cPathname, "untaint", path_untaint, 0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions