Skip to content

Commit

Permalink
Allow base64 encoded images (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 authored Nov 22, 2023
1 parent 910d5ae commit a1774a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/libraries/Ilch/Design/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ public function __construct(Request $request, Translator $translator, Router $ro
$this->purifierConfig = \HTMLPurifier_Config::createDefault();
$this->purifierConfig->set('Filter.YouTube', true);
$this->purifierConfig->set('HTML.SafeIframe', true);
$this->purifierConfig->set('URI.AllowedSchemes', array('data' => true));
$this->purifierConfig->set('URI.SafeIframeRegexp', '%^https://(www.youtube.com/embed/|www.youtube-nocookie.com/embed/|player.vimeo.com/video/|)%');
$this->purifierConfig->set('Attr.AllowedFrameTargets', '_blank, _self, _target, _parent');
$this->purifierConfig->set('Attr.EnableID', true);
Expand Down

0 comments on commit a1774a4

Please sign in to comment.