git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] The images from picon and gravatar are always used over http://, and browsers give mixed contents warning when gitweb is served over https://.

From
Andrej E Baranov <admin@andrej-andb.ru>
Date
Jan 28, 2013, 23:41 UTC
Message-ID
<1359416492-8597-1-git-send-email-admin@andrej-andb.ru>

Just drop the scheme: part from the URL, so that these external sites are accessed over https:// in such a case.

Signed-off-by: Andrej E Baranov <admin@andrej-andb.ru>
---
 gitweb/gitweb.perl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index c6bafe6..1309196 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2068,7 +2068,7 @@ sub picon_url {
 	if (!$avatar_cache{$email}) {
 		my ($user, $domain) = split('@', $email);
 		$avatar_cache{$email} =
-			"http://www.cs.indiana.edu/cgi-pub/kinzler/piconsearch.cgi/" .
+			"//www.cs.indiana.edu/cgi-pub/kinzler/piconsearch.cgi/" .
 			"$domain/$user/" .
 			"users+domains+unknown/up/single";
 	}
@@ -2083,7 +2083,7 @@ sub gravatar_url {
 	my $email = lc shift;
 	my $size = shift;
 	$avatar_cache{$email} ||=
-		"http://www.gravatar.com/avatar/" .
+		"//www.gravatar.com/avatar/" .
 			Digest::MD5::md5_hex($email) . "?s=";
 	return $avatar_cache{$email} . $size;
 }
-- 
1.8.1.1
Next: Junio C Hamano
Message 1 of 8 in “The images from picon and gravatar are always used over http://, and browsers give mixed contents warning when gitweb is served over https://.”
  1. The images from picon and gravatar are always used over http://, and browsers give mixed contents warning when gitweb is served over https://.Andrej E Baranov, Jan 28, 2013
  2. Junio C HamanoJan 29, 2013
  3. Bryan TurnerJan 29, 2013
  4. Jonathan NiederJan 29, 2013
  5. Bryan TurnerJan 29, 2013
  6. Junio C HamanoJan 29, 2013
  7. Jonathan NiederJan 31, 2013
  8. Junio C HamanoFeb 1, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.