mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
Merge pull request #6444 from kevinansfield/fix-mixed-content-warnings
Fix mixed content security warnings due to gravatar images
This commit is contained in:
commit
250149bb13
@ -64,7 +64,7 @@ export default Component.extend({
|
|||||||
|
|
||||||
let style = '';
|
let style = '';
|
||||||
if (email) {
|
if (email) {
|
||||||
let url = `http://www.gravatar.com/avatar/${window.md5(email)}?s=${size}&d=blank`;
|
let url = `//www.gravatar.com/avatar/${window.md5(email)}?s=${size}&d=blank`;
|
||||||
style = `background-image: url(${url})`;
|
style = `background-image: url(${url})`;
|
||||||
}
|
}
|
||||||
return Ember.String.htmlSafe(style);
|
return Ember.String.htmlSafe(style);
|
||||||
|
@ -56,7 +56,7 @@ describeComponent(
|
|||||||
|
|
||||||
it('immediately renders the gravatar if valid email supplied', function () {
|
it('immediately renders the gravatar if valid email supplied', function () {
|
||||||
let email = 'test@example.com';
|
let email = 'test@example.com';
|
||||||
let expectedUrl = `http://www.gravatar.com/avatar/${md5(email)}?s=100&d=blank`;
|
let expectedUrl = `//www.gravatar.com/avatar/${md5(email)}?s=100&d=blank`;
|
||||||
|
|
||||||
this.set('email', email);
|
this.set('email', email);
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ describeComponent(
|
|||||||
|
|
||||||
it('throttles gravatar loading as email is changed', function (done) {
|
it('throttles gravatar loading as email is changed', function (done) {
|
||||||
let email = 'test@example.com';
|
let email = 'test@example.com';
|
||||||
let expectedUrl = `http://www.gravatar.com/avatar/${md5(email)}?s=100&d=blank`;
|
let expectedUrl = `//www.gravatar.com/avatar/${md5(email)}?s=100&d=blank`;
|
||||||
|
|
||||||
this.set('email', 'test');
|
this.set('email', 'test');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user