Skip to content

Commit

Permalink
DP-542 Fix email sanitization issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tomonorman committed Jul 28, 2022
1 parent 777589a commit 3c216d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Components/Registrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ protected static function sendConfirmation($user, $emailServiceId, $emailTemplat
'link' => url(\Config::get('df.confirm_register_url')) .
'?code=' . $user->confirm_code .
'&email=' . $email .
'&username=' . $user->username,
'first_name' => $user->first_name,
'last_name' => $user->last_name,
'name' => $user->name,
'&username=' . strip_tags($user->username),
'first_name' => strip_tags($user->first_name),
'last_name' => strip_tags($user->last_name),
'name' => strip_tags($user->name),
'email' => $user->email,
'phone' => $user->phone,
'phone' => strip_tags($user->phone),
'content_header' => array_get($templateData, 'subject', 'Confirm your DreamFactory account.'),
'app_name' => \Config::get('app.name'),
'instance_name' => \Config::get('app.name'), // older templates
Expand Down

0 comments on commit 3c216d9

Please sign in to comment.