Skip to content

Commit

Permalink
Merge pull request #634 from DirectoryTree/bug-633
Browse files Browse the repository at this point in the history
Replace utf8_encode with mb_convert_encoding
  • Loading branch information
stevebauman committed Mar 4, 2024
2 parents 02867cc + 8c550ed commit 8845a3d
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 8845a3d

Please sign in to comment.