Преглед изворни кода

add allowfullscreen to iframe (#8467)

With the "allowfullscreen" attribute it's possible to view an embedded video in full screen.
Luca Olivetti пре 2 месеци
родитељ
комит
bb786f4ade
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      app/Models/SimplePieCustom.php

+ 2 - 1
app/Models/SimplePieCustom.php

@@ -114,7 +114,7 @@ final class FreshRSS_SimplePieCustom extends \SimplePie\SimplePie
 			'hgroup' => [],
 			'hgroup' => [],
 			'hr' => ['align', 'noshade', 'size', 'width'],
 			'hr' => ['align', 'noshade', 'size', 'width'],
 			'i' => [],
 			'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'],
 			'image' => ['src', 'alt', 'width', 'height', 'align', 'border', 'hspace', 'longdesc', 'vspace'],
 			'img' => ['src', 'alt', 'width', 'height', 'align', 'border', 'hspace', 'longdesc', 'vspace'],
 			'img' => ['src', 'alt', 'width', 'height', 'align', 'border', 'hspace', 'longdesc', 'vspace'],
 			'ins' => ['cite', 'datetime'],
 			'ins' => ['cite', 'datetime'],
@@ -220,6 +220,7 @@ final class FreshRSS_SimplePieCustom extends \SimplePie\SimplePie
 			'iframe' => [
 			'iframe' => [
 				'allow' => 'accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share',
 				'allow' => 'accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share',
 				'sandbox' => 'allow-scripts allow-same-origin',
 				'sandbox' => 'allow-scripts allow-same-origin',
+				'allowfullscreen' => 'allowfullscreen',
 			],
 			],
 			'video' => ['controls' => 'controls', 'preload' => 'none'],
 			'video' => ['controls' => 'controls', 'preload' => 'none'],
 		]);
 		]);