This commit is contained in:
Bernd Bestel 2021-07-02 20:29:25 +02:00
parent cc9345136c
commit 74d745cfc4
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -213,7 +213,7 @@ class BaseController
$htmlPurifierConfig->set('HTML.SafeIframe', true);
$htmlPurifierConfig->set('CSS.AllowedProperties', 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align');
$htmlPurifierConfig->set('URI.AllowedSchemes', ['data' => true, 'http' => true, 'https' => true]);
$htmlPurifierConfig->set('URI.SafeIframeRegexp', '%^.*%'); //allow YouTube and Vimeo
$htmlPurifierConfig->set('URI.SafeIframeRegexp', '%^.*%'); // Allow any iframe source
self::$htmlPurifierInstance = new \HTMLPurifier($htmlPurifierConfig);
}