1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 02:57:15 +02:00

Fixes #3793 TinyMce video tags fix and expansion of allowed attributes.

This commit is contained in:
Cameron
2020-05-05 10:14:38 -07:00
parent 14e8a28d2d
commit 25f580ce2f
2 changed files with 48 additions and 14 deletions

View File

@@ -25,6 +25,7 @@
$this->assertTrue(false, "Couldn't load e_parser object");
}
$this->tp->__construct();
}
/*
public function testHtmlAbuseFilter()
@@ -635,12 +636,16 @@ while($row = $sql->fetch())
$result = $this->tp->getScriptAccess();
$this->assertFalse($result);
}
/*
public function testSetAllowedAttributes()
public function testGetAllowedAttributes()
{
$result = $this->tp->getAllowedAttributes();
$true = is_array($result) && in_array('style',$result['img']);
$this->assertTrue($true);
}
/*
public function testSetScriptTags()
{
@@ -1114,6 +1119,11 @@ while($row = $sql->fetch())
'expected' => "<pre>/* &#123;THEME_PREF: code=header_width&amp;default=container&#125; */</pre>",
),
13 => array(
'html' => '<div class="video-responsive"><div class="video-responsive"><video width="320" height="240" controls="controls"><source src="e107_media/xxxxx5/videos/2018-07/SampleVideo.mp4" type="video/mp4">Your browser does not support the video tag.</video></div></div>',
'expected' => '<div class="video-responsive"><div class="video-responsive"><video width="320" height="240" controls="controls"><source src="e107_media/xxxxx5/videos/2018-07/SampleVideo.mp4" type="video/mp4">Your browser does not support the video tag.</source></video></div></div>'
),
);