mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/uri/common.rb (URI::Parser#initialize_pattern):
refix for restrict the pattern. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
41bfc7a721
commit
68b18291ac
3 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Dec 6 10:39:54 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/uri/common.rb (URI::Parser#initialize_pattern):
|
||||||
|
refix for restrict the pattern.
|
||||||
|
|
||||||
Mon Dec 6 09:45:11 2010 Eric Hodel <drbrain@segment7.net>
|
Mon Dec 6 09:45:11 2010 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* ext/openssl (OpenSSL): add toplevel documentation
|
* ext/openssl (OpenSSL): add toplevel documentation
|
||||||
|
|
|
@ -260,7 +260,7 @@ module URI
|
||||||
# hostname = *( domainlabel "." ) toplabel [ "." ]
|
# hostname = *( domainlabel "." ) toplabel [ "." ]
|
||||||
# reg-name = *( unreserved / pct-encoded / sub-delims ) # RFC3986
|
# reg-name = *( unreserved / pct-encoded / sub-delims ) # RFC3986
|
||||||
unless hostname
|
unless hostname
|
||||||
ret[:HOSTNAME] = hostname = "(?:[a-zA-Z0-9\\-._~!$&'()*+,;=]|%\\h\\h)*"
|
ret[:HOSTNAME] = hostname = "(?:[a-zA-Z0-9\\-.]|%\\h\\h)+"
|
||||||
end
|
end
|
||||||
|
|
||||||
# RFC 2373, APPENDIX B:
|
# RFC 2373, APPENDIX B:
|
||||||
|
|
|
@ -36,7 +36,7 @@ class TestLDAP < Test::Unit::TestCase
|
||||||
assert_equal(nil, u.extensions)
|
assert_equal(nil, u.extensions)
|
||||||
|
|
||||||
# from RFC2255, section 6.
|
# from RFC2255, section 6.
|
||||||
urls = {
|
{
|
||||||
'ldap:///o=University%20of%20Michigan,c=US' =>
|
'ldap:///o=University%20of%20Michigan,c=US' =>
|
||||||
['ldap', nil, URI::LDAP::DEFAULT_PORT,
|
['ldap', nil, URI::LDAP::DEFAULT_PORT,
|
||||||
'o=University%20of%20Michigan,c=US',
|
'o=University%20of%20Michigan,c=US',
|
||||||
|
|
Loading…
Add table
Reference in a new issue