Make sure there's only one slash as path separator
What does this MR do?
Make sure there's only one slash as path separator
In Ruby 2.4, URI.join("http://test//", "a").to_s
will
remove the double slash, however it's not the case in
Ruby 2.5. Using chomp should work better for the intention,
as we're not trying to allow things like ../ or / paths
resolution.
-
Make sure this also works for Ruby 2.5: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/8373/diffs -
Port to CE: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22954/diffs
What are the relevant issue numbers?
Edited by Stan Hu