mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/uri/ftp.rb (URI::FTP#initialize): raise InvalidURIError if "//"
is not present [ruby-core:47344] [Bug #6945] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ed491f2c86
commit
37cc18d54b
3 changed files with 10 additions and 0 deletions
|
@ -135,6 +135,7 @@ module URI
|
|||
# +opaque+, +query+ and +fragment+, in that order.
|
||||
#
|
||||
def initialize(*arg)
|
||||
raise InvalidURIError unless arg[5]
|
||||
arg[5] = arg[5].sub(/^\//,'').sub(/^%2F/,'/')
|
||||
super(*arg)
|
||||
@typecode = nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue