Skip to content

Commit

Permalink
Replace utf8_encode with mb_convert_encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Mar 4, 2024
1 parent 02867cc commit 8c550ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/WindowsAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,6 @@ protected function fireAuthenticatedEvent(Model $user, mixed $model = null): voi
*/
protected function account(Request $request): string
{
return utf8_encode($request->server(static::$serverKey));
return mb_convert_encoding($request->server(static::$serverKey, ''), 'UTF-8');
}
}

0 comments on commit 8c550ed

Please sign in to comment.