Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix 289313
  • Loading branch information
Jonathan Claudius authored and segiddins committed Feb 16, 2018
1 parent f83f911 commit 66a28b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/server.rb
Expand Up @@ -632,7 +632,7 @@ def root(req, res)
"only_one_executable" => (executables && executables.size == 1),
"full_name" => spec.full_name,
"has_deps" => !deps.empty?,
"homepage" => spec.homepage,
"homepage" => (URI.parse(spec.homepage).is_a?(URI::HTTP) || URI.parse(spec.homepage).is_a?(URI::HTTPS)) ? spec.homepage : ".",
"name" => spec.name,
"rdoc_installed" => Gem::RDoc.new(spec).rdoc_installed?,
"ri_installed" => Gem::RDoc.new(spec).ri_installed?,
Expand Down

0 comments on commit 66a28b9

Please sign in to comment.