Skip to content

Commit

Permalink
Add HTML.Link to HTML5Config
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream committed Sep 19, 2021
1 parent 265ed8e commit 00f4293
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion library/HTMLPurifier/HTML5Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class HTMLPurifier_HTML5Config extends HTMLPurifier_Config
{
const REVISION = 2021091701;
const REVISION = 2021091901;

/**
* @param string|array|HTMLPurifier_Config $config
Expand Down Expand Up @@ -80,6 +80,10 @@ public function __construct(HTMLPurifier_ConfigSchema $schema, HTMLPurifier_Prop
$schema->add('HTML.Forms', false, 'bool', false);
}

if (empty($schema->info['HTML.Link'])) {
$schema->add('HTML.Link', false, 'bool', false);
}

if (empty($schema->info['HTML.SafeLink'])) {
$schema->add('HTML.SafeLink', false, 'bool', false);
}
Expand Down

0 comments on commit 00f4293

Please sign in to comment.