Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 5748558

Browse files
Andrej E Baranovgitster
authored andcommitted
gitweb: refer to picon/gravatar images over the same scheme
With the current code, the images from picon and gravatar are requested over http://, and browsers give mixed contents warning when gitweb is served over https://. 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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 53cdd4e commit 5748558

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,7 @@ sub picon_url {
20682068
if (!$avatar_cache{$email}) {
20692069
my ($user, $domain) = split('@', $email);
20702070
$avatar_cache{$email} =
2071-
"http://www.cs.indiana.edu/cgi-pub/kinzler/piconsearch.cgi/" .
2071+
"//www.cs.indiana.edu/cgi-pub/kinzler/piconsearch.cgi/" .
20722072
"$domain/$user/" .
20732073
"users+domains+unknown/up/single";
20742074
}
@@ -2083,7 +2083,7 @@ sub gravatar_url {
20832083
my $email = lc shift;
20842084
my $size = shift;
20852085
$avatar_cache{$email} ||=
2086-
"http://www.gravatar.com/avatar/" .
2086+
"//www.gravatar.com/avatar/" .
20872087
Digest::MD5::md5_hex($email) . "?s=";
20882088
return $avatar_cache{$email} . $size;
20892089
}

0 commit comments

Comments
 (0)