Skip to content

Replace deprecated URI.encode with encode_www_form_component

Takuya Noguchi requested to merge replace-uri-encode-2 into master

Why is this change being made?

That method was deprecated in Ruby 2.7 and was removed in Ruby 3.0, so it is now a critical blocker for !78850 (merged).

Replaces deprecated URI.encode with URI.encode_www_form_component.

cf. !79480 (merged)

Ruby update to 2.7 in the project: !73459 (merged)

Author Checklist

  • Provided a concise title for the MR
  • Added a description to this MR explaining the reasons for the proposed change, per say-why-not-just-what
  • Assign this change to the correct DRI
    • If the DRI for the page/s being updated isn’t immediately clear, then assign it to one of the people listed in the "Maintained by" section in on the page being edited.
    • If your manager does not have merge rights, please ask someone to merge it AFTER it has been approved by your manager in #mr-buddies.
    • If the changes relate to any part of the project other than updates to content and/or data files please make sure to ping @gl-static-site-editor in a comment for a review and merge. For example changes to .gitlab-ci.yml, JavaScript/CSS/Ruby code or the layout files. (this requirement has been removed pending identification of a new DRI for the handbook)
Edited by Takuya Noguchi

Merge request reports