Vimeo oEmbed thumbnail host added to whitelist

This commit is contained in:
Mikael Nordfeldth 2015-02-02 11:13:52 +01:00
parent 20e1257e70
commit 000b7675d8

View File

@ -8,6 +8,7 @@ class OembedPlugin extends Plugin
// WARNING, these are _regexps_ (slashes added later). Always escape your dots and end your strings // WARNING, these are _regexps_ (slashes added later). Always escape your dots and end your strings
public $domain_whitelist = array( // hostname => service provider public $domain_whitelist = array( // hostname => service provider
'^i\d*\.ytimg\.com$' => 'YouTube', '^i\d*\.ytimg\.com$' => 'YouTube',
'^i\d*\.vimeocdn\.com$' => 'Vimeo',
); );
public $append_whitelist = array(); // fill this array as domain_whitelist to add more trusted sources public $append_whitelist = array(); // fill this array as domain_whitelist to add more trusted sources
public $check_whitelist = true; // security/abuse precaution public $check_whitelist = true; // security/abuse precaution