Problem/Motivation

Usage of live_weather block on site with SSL leads to "mixed content" issue because of following line of code located in /src/Plugin/Block/LiveWeatherBlock.php

$html[$i]['image'] = 'http://l.yimg.com/a/i/us/nws/weather/gr/' . Html::escape($data['item']['condition']['code']) . $daynight;

This code loads images from Yahoo remote resource via http protocol.

Proposed resolution

We need to find out how to load images via https from Yahoo resource.

I believe those examples will be in handy:
https://s.yimg.com/zz/combo?a/i/us/nws/weather/gr/12d.png
https://s.yimg.com/zz/combo?a/i/us/nws/weather/gr/32d.png

Regards!

Remaining tasks

User interface changes

API changes

Data model changes

Comments

sergei_semipiadniy created an issue. See original summary.

sergei_semipiadniy’s picture

I will create a patch for this issue a bit later.
Regards!

sergei_semipiadniy’s picture

Issue summary: View changes
Issue tags: +SSL https, +https
sergei_semipiadniy’s picture

Hi all!
This patch aimed for 1.x-dev branch.
Please test a patch in case you faced the same issue)

sergei_semipiadniy’s picture

Status: Needs work » Needs review
sergei_semipiadniy’s picture

This patch aimed for 8.x-1.2 brabch.
Please test a patch in case you faced the same issue)

manikaprasanth’s picture

Status: Needs review » Fixed

Thanks for your code. I have used the code while updating yahoo API changes.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.