From 295f0dd1f57bc64aef05d396bd069640a0068aa0 Mon Sep 17 00:00:00 2001 From: corydlamb <97770090+corydlamb@users.noreply.github.com> Date: Tue, 17 Jan 2023 19:33:25 -0500 Subject: [PATCH] Update WelcomeNotification.php Used htmlspecialchars_decode to fix the issue I had involving Ampersands in the password field (and I'm assuming the other fields) of the welcome notification email. Changes are all in lines 22-26. Sorry if I'm not doing this very well as this is my first pull request. --- app/Notifications/WelcomeNotification.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Notifications/WelcomeNotification.php b/app/Notifications/WelcomeNotification.php index 3d2657b944..639f622188 100644 --- a/app/Notifications/WelcomeNotification.php +++ b/app/Notifications/WelcomeNotification.php @@ -19,11 +19,11 @@ class WelcomeNotification extends Notification */ public function __construct(array $content) { - $this->_data['email'] = $content['email']; - $this->_data['first_name'] = $content['first_name']; - $this->_data['last_name'] = $content['last_name']; - $this->_data['username'] = $content['username']; - $this->_data['password'] = $content['password']; + $this->_data['email'] = htmlspecialchars_decode($content['email']); + $this->_data['first_name'] = htmlspecialchars_decode($content['first_name']); + $this->_data['last_name'] = htmlspecialchars_decode($content['last_name']); + $this->_data['username'] = htmlspecialchars_decode($content['username']); + $this->_data['password'] = htmlspecialchars_decode($content['password']); $this->_data['url'] = url('/'); }