Change default oEmbed URLs from HTTP to HTTPS

Fixes #85
This commit is contained in:
Trevor Slocum 2019-09-08 05:39:08 -07:00
parent 3386115b7b
commit 3ee1805ae3
3 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,5 @@
# TinyIB [![Donate](http://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
# TinyIB
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
A lightweight and efficient [image board](https://en.wikipedia.org/wiki/Imageboard). See [TinyIB Installations](https://gitlab.com/tslocum/tinyib/wikis/Home) for demos.

View File

@ -80,8 +80,8 @@ if (!isset($tinyib_uploads)) {
if (!isset($tinyib_embeds)) {
$tinyib_embeds = array();
if (defined('TINYIB_EMBED') && TINYIB_EMBED) {
$tinyib_embeds['SoundCloud'] = 'http://soundcloud.com/oembed?format=json&url=TINYIBEMBED';
$tinyib_embeds['Vimeo'] = 'http://vimeo.com/api/oembed.json?url=TINYIBEMBED';
$tinyib_embeds['YouTube'] = 'http://www.youtube.com/oembed?url=TINYIBEMBED&format=json';
$tinyib_embeds['SoundCloud'] = 'https://soundcloud.com/oembed?format=json&url=TINYIBEMBED';
$tinyib_embeds['Vimeo'] = 'https://vimeo.com/api/oembed.json?url=TINYIBEMBED';
$tinyib_embeds['YouTube'] = 'https://www.youtube.com/oembed?url=TINYIBEMBED&format=json';
}
}

View File

@ -48,9 +48,9 @@ $tinyib_uploads = array('image/jpeg' => array('jpg'),
// oEmbed APIs
// Empty array to disable
$tinyib_embeds = array('SoundCloud' => 'http://soundcloud.com/oembed?format=json&url=TINYIBEMBED',
'Vimeo' => 'http://vimeo.com/api/oembed.json?url=TINYIBEMBED',
'YouTube' => 'http://www.youtube.com/oembed?url=TINYIBEMBED&format=json');
$tinyib_embeds = array('SoundCloud' => 'https://soundcloud.com/oembed?format=json&url=TINYIBEMBED',
'Vimeo' => 'https://vimeo.com/api/oembed.json?url=TINYIBEMBED',
'YouTube' => 'https://www.youtube.com/oembed?url=TINYIBEMBED&format=json');
// File control
define('TINYIB_MAXKB', 2048); // Maximum file size in kilobytes [0 to disable]