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 11:03:38 +0100
commitfd7d497cd1ba8846770425fc4dcb07c7cf5bbb85 (patch)
tree902d1da8467ce6d84337baf9377daa1ab65c18ec /include/oembed.php
parenta974d0d52dc0f1b40316f0c30e9794b7b700e59e (diff)
downloadvolse-hubzilla-fd7d497cd1ba8846770425fc4dcb07c7cf5bbb85.tar.gz
volse-hubzilla-fd7d497cd1ba8846770425fc4dcb07c7cf5bbb85.tar.bz2
volse-hubzilla-fd7d497cd1ba8846770425fc4dcb07c7cf5bbb85.zip
make inline pdf a security option, move thumbnail security to security options from admin/site
(cherry picked from commit de9a7f0fa909792656d26d369f2ff21c57fc1e4d)
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>',