From 444d8d6dc0de96f3e0eaea98d059f50f5b3bf62f Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 12 Apr 2021 11:01:58 -0700 Subject: [PATCH] Issue #4486 - iframe accepted attributes updated --- e107_handlers/e_parse_class.php | 2 +- e107_tests/tests/unit/e_parseTest.php | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index d62f56d97..34f64cb4e 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -3386,7 +3386,7 @@ class e_parse 'img' => array('src', 'alt', 'width', 'height'), 'a' => array('href', 'target', 'rel'), 'script' => array('type', 'src', 'language', 'async'), - 'iframe' => array('src', 'frameborder', 'width', 'height'), + 'iframe' => array('src', 'frameborder', 'width', 'height', 'allowfullscreen', 'allow'), 'input' => array('type', 'name', 'value'), 'form' => array('action', 'method', 'target'), 'audio' => array('src', 'controls', 'autoplay', 'loop', 'muted', 'preload'), diff --git a/e107_tests/tests/unit/e_parseTest.php b/e107_tests/tests/unit/e_parseTest.php index 3a87fb238..d53d47d8b 100644 --- a/e107_tests/tests/unit/e_parseTest.php +++ b/e107_tests/tests/unit/e_parseTest.php @@ -1785,16 +1785,18 @@ while($row = $sql->fetch()) ), 'iframe' => array ( - 0 => 'src', - 1 => 'frameborder', - 2 => 'width', - 3 => 'height', - 4 => 'id', - 5 => 'style', - 6 => 'class', - 7 => 'title', - 8 => 'lang', - 9 => 'accesskey', + 'src', + 'frameborder', + 'width', + 'height', + 'allowfullscreen', + 'allow', + 'id', + 'style', + 'class', + 'title', + 'lang', + 'accesskey', ), 'input' => array (