File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
spec/spec_tests/data/connection_string Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ def validate_same_origin!(record_host)
130130 raise Error ::MismatchedDomain . new ( MISMATCHED_DOMAINNAME % [ record_host , srv_host_domain ] )
131131 end
132132
133- unless ( srv_host_domain == record_host_parts [ -srv_host_domain . size ..-1 ] )
133+ unless ( record_host_parts . size > srv_host_domain . size ) && ( srv_host_domain == record_host_parts [ -srv_host_domain . size ..-1 ] )
134134 raise Error ::MismatchedDomain . new ( MISMATCHED_DOMAINNAME % [ record_host , srv_host_domain ] )
135135 end
136136 end
Original file line number Diff line number Diff line change 77 hosts : ~
88 auth : ~
99 options : ~
10- -
11- description : " Invalid scheme"
12- uri : " mongo://localhost:27017"
13- valid : false
14- warning : ~
15- hosts : ~
16- auth : ~
17- options : ~
1810 -
1911 description : " Missing host"
2012 uri : " mongodb://"
You can’t perform that action at this time.
0 commit comments