Drops the Discord-derived avatar entirely (discord_avatar, discord_refresh_token, discord_avatar_synced_at and the background refresh via OAuth refresh token) in favor of members uploading their own picture. "Mein Profil" now shows a larger (120px) avatar with a pencil button pinned to its top-right corner; picking a file uploads it immediately. Uploads are validated by actual image content (getimagesize, not the original filename/extension) and stored under a randomly generated name in assets/uploads/avatars/, which ships with its own .htaccess disabling script execution so a disguised upload can never run as PHP. Falls back to the existing letter placeholder when no picture is set. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
17 lines
485 B
ApacheConf
17 lines
485 B
ApacheConf
# Hochgeladene Profilbilder duerfen niemals als Skript ausgefuehrt werden,
|
|
# selbst wenn eine Datei die Typ-/Groessenpruefung in profile.php umgehen sollte.
|
|
<IfModule mod_php.c>
|
|
php_flag engine off
|
|
</IfModule>
|
|
<IfModule mod_php7.c>
|
|
php_flag engine off
|
|
</IfModule>
|
|
|
|
<FilesMatch "\.(php|phtml|php[0-9]?|phar|cgi|pl)$">
|
|
<IfModule mod_authz_core.c>
|
|
Require all denied
|
|
</IfModule>
|
|
<IfModule !mod_authz_core.c>
|
|
Deny from all
|
|
</IfModule>
|
|
</FilesMatch>
|