aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-15 09:55:44 +0000
committerMario <mario@mariovavti.com>2019-11-15 09:55:44 +0000
commitde9a7f0fa909792656d26d369f2ff21c57fc1e4d (patch)
tree4ec11bdc7f3c62a4b5fad29a6740244eb6246cfa /include/oembed.php
parent3009c88d246ddcafabf1965f88c5ebd8fe1717fd (diff)
downloadvolse-hubzilla-de9a7f0fa909792656d26d369f2ff21c57fc1e4d.tar.gz
volse-hubzilla-de9a7f0fa909792656d26d369f2ff21c57fc1e4d.tar.bz2
volse-hubzilla-de9a7f0fa909792656d26d369f2ff21c57fc1e4d.zip
make inline pdf a security option, move thumbnail security to security options from admin/site
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-xinclude/oembed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/oembed.php b/include/oembed.php
index ee9e57c3f..eeae7a174 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -146,7 +146,7 @@ function oembed_fetch_url($embedurl){
$txt = Cache::get('[' . App::$videowidth . '] ' . $furl);
}
- if(strpos(strtolower($embedurl),'.pdf') !== false) {
+ if(strpos(strtolower($embedurl),'.pdf') !== false && get_config('system','inline_pdf')) {
$action = 'allow';
$j = [
'html' => '<object data="' . $embedurl . '" type="application/pdf" style="width: 100%; height: 300px;"></object>',