summaryrefslogtreecommitdiff
path: root/lib/uri/mailto.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-02 09:05:05 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-02 09:05:05 +0000
commit79f86a67d06919e0c8a4a893eae6e91ca3d74dc3 ()
treee26741e3eb04e1be981dda6231009b75a8b9f472 /lib/uri/mailto.rb
parent1e3fc7dcfae209ab511eb5194d626de021be69e7 (diff)
* lib/uri/mailto.rb (initialize): RFC3986_Parser#split sets opaque
only if the URI has path-rootless, not path-empty. [ruby-core:76055] [Bug #12498] ed by Chris Heisterkamp <[email protected]> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/uri/mailto.rb3
1 files changed, 3 insertions, 0 deletions
@@ -136,6 +136,9 @@ module URI
@to = nil
@headers = []
unless @opaque
raise InvalidComponentError,
"missing opaque part for mailto URL"