From a1774a491fd7b553e6941a81b28c82289f7e17a0 Mon Sep 17 00:00:00 2001 From: blackcoder87 Date: Wed, 22 Nov 2023 19:45:49 +0100 Subject: [PATCH] Allow base64 encoded images (#871) --- application/libraries/Ilch/Design/Base.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/libraries/Ilch/Design/Base.php b/application/libraries/Ilch/Design/Base.php index 7fd2ad354..6044c7fbc 100644 --- a/application/libraries/Ilch/Design/Base.php +++ b/application/libraries/Ilch/Design/Base.php @@ -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);