Skip to content

Use URI::RFC2396_PARSER.escape explicitly. #235

Description

@rubyFeedback
warning: URI::RFC3986_PARSER.escape is obsolete. Use URI::RFC2396_PARSER.escape explicitly.

The code I was using was along those lines:

begin
    this_webpage = URI.parse(this_webpage)
  rescue URI::InvalidURIError
    this_webpage = URI.parse(URI::Parser.new.escape(this_webpage))
  end

Could you guys clean this up internally? In my own downstream code I never
use either of those two constants, but I do have warnings on, so I notice
this warning. I reckon this may simply be to change towards the other RFC,
but I don't know the URI internals well enough to suggest anything really.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions