Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Link with protocol breaks https #52

Open
wants to merge 1 commit into from

1 participant

@yebyen

You can make this link without including the protocol, safely and so that any site served via HTTPS does not cause warnings about unsecured content on the page. Any visitors with document.location that starts with https: will go to https://gravatar... etc and any visitors with otherwise or http: browser's document.location will not notice any difference. This change, and removal of the manning affiliate hrefs, make the lock turn green on my website.

@yebyen yebyen Link with protocol breaks https
You can make this link without including the protocol, safely and so that any site served via HTTPS does not cause warnings about unsecured content on the page.  Any visitors with document.location that starts with https: will go to https://gravatar... etc and any visitors with otherwise or http: browser's document.location will not notice any difference.
5bf124c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2014
  1. @yebyen

    Link with protocol breaks https

    yebyen authored
    You can make this link without including the protocol, safely and so that any site served via HTTPS does not cause warnings about unsecured content on the page.  Any visitors with document.location that starts with https: will go to https://gravatar... etc and any visitors with otherwise or http: browser's document.location will not notice any difference.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/wheat/tools.js
View
2  lib/wheat/tools.js
@@ -28,7 +28,7 @@ var Helpers = {
size = size || 200;
var hash = Crypto.createHash('md5')
hash.update((email+"").trim().toLowerCase())
- return "http://www.gravatar.com/avatar/" +
+ return "//www.gravatar.com/avatar/" +
hash.digest('hex') +
"?r=pg&s=" + size + ".jpg&d=identicon";
},
Something went wrong with that request. Please try again.