Skip to content

Commit 66a28b9

Browse files
Jonathan Claudiussegiddins
Jonathan Claudius
authored andcommitted
Fix 289313
1 parent f83f911 commit 66a28b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/rubygems/server.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def root(req, res)
632632
"only_one_executable" => (executables && executables.size == 1),
633633
"full_name" => spec.full_name,
634634
"has_deps" => !deps.empty?,
635-
"homepage" => spec.homepage,
635+
"homepage" => (URI.parse(spec.homepage).is_a?(URI::HTTP) || URI.parse(spec.homepage).is_a?(URI::HTTPS)) ? spec.homepage : ".",
636636
"name" => spec.name,
637637
"rdoc_installed" => Gem::RDoc.new(spec).rdoc_installed?,
638638
"ri_installed" => Gem::RDoc.new(spec).ri_installed?,

0 commit comments

Comments
 (0)