Skip to content

Ruby 2.7.1, URI.decode is obsolete #416

@jeremyf

Description

@jeremyf

In reviewing the specs for Samvear on my machine, URI.decode (an alias for URI.escape) is marked as obsolete. Calling URI.decode sends quite a bit of chatter to stdour (or stderr). The recommendation is included below:

This method is obsolete and should not be used. Instead, use CGI.unescape, URI.decode_www_form or URI.decode_www_form_component depending on your specific use case.

https://ruby-doc.org/stdlib-2.7.1/libdoc/uri/rdoc/URI/Escape.html

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