ruby/test/uri
Jeremy Evans 37657c79b6 [ruby/uri] Make URI#to_s prepend relative path with / if there is a host or port
Otherwise, the path could be considered part of the host or port.

This is better than modifying the path to make it absolute when
a host or port is set.  We could also raise for invalid paths
when a host or port is set using check_path, but that results
in weird errors, and won't catch issues (such as ftp allowing a
relative path).

Fixes [Bug #19916]

https://github.com/ruby/uri/commit/ac32aa005b
2024-01-05 16:07:55 +00:00
..
test_common.rb [ruby/uri] Define test cases as qualified class names 2023-05-05 00:46:11 +00:00
test_file.rb Introduce URI::File to handle file URI scheme 2018-03-15 16:51:31 +00:00
test_ftp.rb [ruby/uri] Define test cases as qualified class names 2023-05-05 00:46:11 +00:00
test_generic.rb [ruby/uri] Make URI#to_s prepend relative path with / if there is a host or port 2024-01-05 16:07:55 +00:00
test_http.rb [ruby/uri] Define test cases as qualified class names 2023-05-05 00:46:11 +00:00
test_ldap.rb [ruby/uri] Define test cases as qualified class names 2023-05-05 00:46:11 +00:00
test_mailto.rb test_mailto.rb: overwritten methods 2016-12-17 00:58:47 +00:00
test_parser.rb [ruby/uri] Fix quadratic backtracking on invalid port number 2023-06-29 01:07:52 +00:00
test_ws.rb [ruby/uri] Define test cases as qualified class names 2023-05-05 00:46:11 +00:00
test_wss.rb [ruby/uri] Define test cases as qualified class names 2023-05-05 00:46:11 +00:00