Full clear HTTPS (SSL) support for YouTube player

Created on 19 February 2015, about 10 years ago
Updated 23 January 2023, over 2 years ago

Full HTTPS (SSL) support for YouTube player is still not implemented in version:
7.x-2.0-rc4+22-dev

I suggest to change hard coded 'http://...' links to just "//..'
though that the protocol can be selected by the system automatically ..
ok?

line 25:
$response = drupal_http_request('http://img.youtube.com/vi/' . $v . '/maxresdefault.jpg');
$response = drupal_http_request('//img.youtube.com/vi/' . $v . '/maxresdefault.jpg');
line 30:
return 'http://img.youtube.com/vi/' . $v . '/0.jpg';
return '//img.youtube.com/vi/' . $v . '/0.jpg';
line 32.
return 'http://img.youtube.com/vi/' . $v . '/maxresdefault.jpg';
return '//img.youtube.com/vi/' . $v . '/maxresdefault.jpg';

in file: MediaInternetYouTubeHandler
line 71:
$oembed_url = url('http://www.youtube.com/oembed', array('query' => array('url' => $external_url, 'format' => 'json')));
$oembed_url = url('https://www.youtube.com/oembed', array('query' => array('url' => $external_url, 'format' => 'json')));
...

Feature request
Status

Fixed

Component

Code

Created by

🇩🇪Germany k. tadesse

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024