instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.52k stars 2.45k forks source link

app/models/message.rb:308: warning: URI.escape is obsolete #2074

Closed amg-web closed 1 year ago

amg-web commented 2 years ago

error message in delayed_job.log:

/home/canvas/public_html/app/models/message.rb:308: warning: URI.escape is obsolete

newbee1905 commented 2 years ago

try replacing URI.escape with this

p = URI::Parser.new
p.escape(s)

source: https://stackoverflow.com/questions/65423458/ruby-2-7-says-uri-escape-is-obsolete-what-replaces-it

ccutrer commented 1 year ago

This has been fixed on master.