Closed cuvoodoo closed 3 years ago
This PR looks fine but CGI.escape
and URI.escape
are not the same - they escape different sets of characters.
I have always found this confusing.
thanks for pointing it out. it seems there is no drop in alternative. URI.encode_www_form_component is an alternative, but maybe not the right one. Else there is the addressable gem, more fitting, but that would a dependency. I'm not knowledgeable enough in ruby-mqtt and the solutions to give the right answer (I mainly fixed it for my case so I can use ruby-mqtt with ruby 3).
Could this be released as a new gem version? Presumably 0.5.1?
URI.unescape was deprecated for a long time. in ruby 3.0 this has been completely removed. uns CGI.unescape instead.