aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Luca Olivetti <luca@ventoso.org> 2026-01-28 08:28:23 +0100
committerGravatar GitHub <noreply@github.com> 2026-01-28 08:28:23 +0100
commitbb786f4adeb59d44a384a6bfd170b897422e9d4e (patch)
treee19948fe9092ba174f7d33dac712162e35ec943d /app
parent0df3a3c51c60977c4c9ef929de11cce79f77d2e2 (diff)
add allowfullscreen to iframe (#8467)
With the "allowfullscreen" attribute it's possible to view an embedded video in full screen.
Diffstat (limited to 'app')
-rw-r--r--app/Models/SimplePieCustom.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Models/SimplePieCustom.php b/app/Models/SimplePieCustom.php
index 44e5b030e..41d8f8eee 100644
--- a/app/Models/SimplePieCustom.php
+++ b/app/Models/SimplePieCustom.php
@@ -114,7 +114,7 @@ final class FreshRSS_SimplePieCustom extends \SimplePie\SimplePie
'hgroup' => [],
'hr' => ['align', 'noshade', 'size', 'width'],
'i' => [],
- 'iframe' => ['src', 'align', 'frameborder', 'longdesc', 'marginheight', 'marginwidth', 'scrolling'],
+ 'iframe' => ['src', 'align', 'frameborder', 'longdesc', 'marginheight', 'marginwidth', 'scrolling', 'allowfullscreen'],
'image' => ['src', 'alt', 'width', 'height', 'align', 'border', 'hspace', 'longdesc', 'vspace'],
'img' => ['src', 'alt', 'width', 'height', 'align', 'border', 'hspace', 'longdesc', 'vspace'],
'ins' => ['cite', 'datetime'],
@@ -220,6 +220,7 @@ final class FreshRSS_SimplePieCustom extends \SimplePie\SimplePie
'iframe' => [
'allow' => 'accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share',
'sandbox' => 'allow-scripts allow-same-origin',
+ 'allowfullscreen' => 'allowfullscreen',
],
'video' => ['controls' => 'controls', 'preload' => 'none'],
]);