Browse Source

Change default oEmbed URLs from HTTP to HTTPS

Fixes #85
json
Trevor Slocum 2 years ago
parent
commit
3ee1805ae3
  1. 3
      README.md
  2. 6
      inc/defines.php
  3. 6
      settings.default.php

3
README.md

@ -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.

6
inc/defines.php

@ -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';
}
}

6
settings.default.php

@ -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]

Loading…
Cancel
Save