We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c8ad90 commit b367184Copy full SHA for b367184
library/HTMLPurifier/HTML5Config.php
@@ -64,6 +64,12 @@ public static function inherit(HTMLPurifier_Config $config)
64
*/
65
public function __construct(HTMLPurifier_ConfigSchema $schema, $parent = null)
66
{
67
+ if ($parent && !$parent instanceof HTMLPurifier_PropertyList) {
68
+ throw new InvalidArgumentException(
69
+ 'Argument #2 ($parent) passed to ' . __METHOD__ . '() must be an instance of HTMLPurifier_PropertyList or null'
70
+ );
71
+ }
72
+
73
// ensure 'HTML5' is among allowed 'HTML.Doctype' values
74
$doctypeConfig = $schema->info['HTML.Doctype'];
75
0 commit comments