From e04418bb16cd99b4a4402e7457d3bdc967284f98 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 5 May 2020 23:23:39 +0900 Subject: [ruby/uri] Check if DN exists https://bugs.ruby-lang.org/issues/16830 https://github.com/ruby/uri/commit/b4bf8c1217 --- lib/uri/ldap.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/uri') diff --git a/lib/uri/ldap.rb b/lib/uri/ldap.rb index a2043ccdf5..14e6163292 100644 --- a/lib/uri/ldap.rb +++ b/lib/uri/ldap.rb @@ -118,6 +118,7 @@ module URI # Private method to cleanup +dn+ from using the +path+ component attribute. def parse_dn + raise InvalidURIError, 'bad LDAP URL' unless @path @dn = @path[1..-1] end private :parse_dn -- cgit v1.2.3