We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c60e2e commit a4b9140Copy full SHA for a4b9140
lib/mqtt/client.rb
@@ -1,6 +1,5 @@
1
autoload :OpenSSL, 'openssl'
2
autoload :URI, 'uri'
3
-autoload :CGI, 'cgi'
4
5
# Client class for talking to an MQTT server
6
module MQTT
@@ -592,8 +591,8 @@ def parse_uri(uri)
592
591
{
593
:host => uri.host,
594
:port => uri.port || nil,
595
- :username => uri.user ? CGI.unescape(uri.user) : nil,
596
- :password => uri.password ? CGI.unescape(uri.password) : nil,
+ :username => uri.user ? URI::DEFAULT_PARSER.unescape(uri.user) : nil,
+ :password => uri.password ? URI::DEFAULT_PARSER.unescape(uri.password) : nil,
597
:ssl => ssl
598
}
599
end
0 commit comments