git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remove protocol from gravatar and picon links for clear if Gitweb is being called through a secure server
@ 2013-01-28 19:14 Andrej Andb
  2013-01-28 20:58 ` Jonathan Nieder
  0 siblings, 1 reply; 10+ messages in thread
From: Andrej Andb @ 2013-01-28 19:14 UTC (permalink / raw)
  To: git; +Cc: Andrej Andb

---
 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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-01-28 23:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-28 19:14 [PATCH] remove protocol from gravatar and picon links for clear if Gitweb is being called through a secure server Andrej Andb
2013-01-28 20:58 ` Jonathan Nieder
2013-01-28 21:54   ` Junio C Hamano
2013-01-28 21:58     ` Junio C Hamano
2013-01-28 22:10     ` Jonathan Nieder
2013-01-28 22:29       ` Junio C Hamano
2013-01-28 22:33         ` Андрей Баранов
2013-01-28 23:08           ` Junio C Hamano
2013-01-28 23:43             ` Андрей Баранов
2013-01-28 22:39         ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).