From 82b7782c2b75c3987c4e17082db8f6b2efbdd9a4 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 20 Apr 2019 22:29:21 -0600 Subject: [PATCH 1/3] Update config --- config/purify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/purify.php b/config/purify.php index 36915eb17..5c09c28c6 100644 --- a/config/purify.php +++ b/config/purify.php @@ -67,7 +67,7 @@ return [ | */ - 'HTML.Allowed' => 'a[href|title|rel],p,strong,em,i,u,h1,h2,h3,h4,h5,ul,ol,li', + 'HTML.Allowed' => 'a[href|title|rel],p,strong,em,i,u,h1,h2,h3,h4,h5,ul,ol,li,br', /* |-------------------------------------------------------------------------- From cca1bf9ec2126708cd81c447c742a61b724177c3 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 20 Apr 2019 22:29:52 -0600 Subject: [PATCH 2/3] Update SettingsController --- app/Http/Controllers/Settings/HomeSettings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Settings/HomeSettings.php b/app/Http/Controllers/Settings/HomeSettings.php index f99d92ce0..2dfa0de38 100644 --- a/app/Http/Controllers/Settings/HomeSettings.php +++ b/app/Http/Controllers/Settings/HomeSettings.php @@ -42,7 +42,7 @@ trait HomeSettings $changes = false; $name = strip_tags($request->input('name')); - $bio = $request->filled('bio') ? Purify::clean($request->input('bio')) : null; + $bio = $request->filled('bio') ? strip_tags(Purify::clean($request->input('bio'))) : null; $website = $request->input('website'); $email = $request->input('email'); $user = Auth::user(); From 3c5cdf9e3160cb6290536b54e95073496822ba2b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 20 Apr 2019 22:31:16 -0600 Subject: [PATCH 3/3] Update settings view --- resources/views/settings/home.blade.php | 78 ++++++++++++++++--------- 1 file changed, 49 insertions(+), 29 deletions(-) diff --git a/resources/views/settings/home.blade.php b/resources/views/settings/home.blade.php index 1a47f30f6..115ac5055 100644 --- a/resources/views/settings/home.blade.php +++ b/resources/views/settings/home.blade.php @@ -128,12 +128,8 @@ @push('scripts') @endpush