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.
2 parents 73db11a + a2da80f commit 182f2beCopy full SHA for 182f2be
lib/mail/utilities.rb
@@ -165,7 +165,11 @@ def uri_unescape( str )
165
end
166
167
def uri_parser
168
- @uri_parser ||= URI.const_defined?(:DEFAULT_PARSER) ? URI::DEFAULT_PARSER : URI
+ @uri_parser ||= if URI.const_defined?(:DEFAULT_PARSER)
169
+ defined?(URI::RFC2396_PARSER) ? URI::RFC2396_PARSER : URI::DEFAULT_PARSER
170
+ else
171
+ URI
172
+ end
173
174
175
# Matches two objects with their to_s values case insensitively
@@ -464,7 +468,7 @@ def Utilities.param_encode(str)
464
468
465
469
466
470
def Utilities.uri_parser
467
- URI::DEFAULT_PARSER
471
472
473
474
# Pick a Ruby encoding corresponding to the message charset. Most
0 commit comments