diff --git a/Controllers/UserController.php b/Controllers/UserController.php index 3bf0950..2c8eeb2 100644 --- a/Controllers/UserController.php +++ b/Controllers/UserController.php @@ -201,10 +201,11 @@ final class UserController throw new HTTPSpecialCaseException(404); } - header("Content-Type: image/png"); if ($A_user["PROFILE_PIC"] === null) { - echo file_get_contents(Constants::rootDir()."/static/img/generic_user.jpg"); + header("Content-Type: image/svg+xml"); + echo file_get_contents(Constants::rootDir()."/static/img/default_user.svg"); } else { + header("Content-Type: image"); echo $A_user["PROFILE_PIC"]; }