Bug #50041
closedMedia content element does not work with youtube and https
100%
Description
If I add a media content element with a youtube url on a website which uses https, a blank box will be shown in the frontend while using Chrome (instead of the yt movie). It seems that a youtube url will always be prefixed with: 'http://www.youtube.com/v/', which is hard-coded in class.tslib_mediawizardcoreprovider.php. Other browsers will prompt a message that the https connection is partly secure, because of this.
I've added a patch as a suggestion. This prefixes the youtube url with http or https dependend on the current used protocol.
Regards,
-- Jochem
Files
Updated by Gerrit Code Review about 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22345
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/22375
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/22376
Updated by Georg Ringer about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 838a4e7d3a89e71f84012497be9648e081a3f131.
Updated by Jochem de Groot about 11 years ago
Hi Georg,
Thank you for resolving this issue!
Ps. Is there any change that this will be implemented the current LTS (4.5) as well?
Regards,
Jochem
Updated by Fabian Auer almost 11 years ago
Hi Georg,
thanks for your effort. Great!
But I think their is a small typo in your patch. Sorry I'm lagging knowledge to create a patch myself.
Line 132 it should be $http = 'https';
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
$http = 'https';
}
Otherwise the condition has no reason ;)
Updated by Wolfangel Cyril over 10 years ago
i still encountered the same problem with 6.2 beta 4, is the patch have been published yet ?
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed