From aaf525342223f5a7cc6699a071fec0b176d1bc85 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 23 Apr 2019 18:30:50 -0600 Subject: [PATCH] Rename .env var, based on feedback from https://mastodon.social/users/alicerunsonfedora/statuses/101978263084840936 --- config/pixelfed.php | 2 +- config/purify.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/pixelfed.php b/config/pixelfed.php index fcd67ee6..8d27a261 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 409555d6..274d7a21 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',