diff --git a/config/pixelfed.php b/config/pixelfed.php index fcd67ee6e..8d27a2617 100644 --- a/config/pixelfed.php +++ b/config/pixelfed.php @@ -280,6 +280,6 @@ return [ 'oauth_enabled' => env('OAUTH_ENABLED', false), 'sanitizer' => [ - 'strict_mode' => env('SANITIZER_STRICT', true) + 'restrict_html_types' => env('RESTRICT_HTML_TYPES', true) ], ]; diff --git a/config/purify.php b/config/purify.php index 409555d65..274d7a21d 100644 --- a/config/purify.php +++ b/config/purify.php @@ -67,7 +67,7 @@ return [ | */ - 'HTML.Allowed' => env('SANITIZER_STRICT', true) ? + 'HTML.Allowed' => env('RESTRICT_HTML_TYPES', true) ? 'a[href|title|rel],p,span,br' : 'a[href|title|rel],p,span,strong,em,i,h1,h2,h3,h4,h5,ul,ol,li,br',