From: ThePeGaSuS <25697531+TehPeGaSuS@users.noreply.github.com> Date: Mon, 7 Sep 2026 11:02:50 +0000 (+0200) Subject: Add disallowed_extensions config with server and client validation X-Git-Tag: 4.8.0~11^2~9 X-Git-Url: https://git.p6c8.net/jirafeau/jirafeau.git/commitdiff_plain/08b9270797ef139d44343187cfa545a145021d83?hp=08b9270797ef139d44343187cfa545a145021d83 Add disallowed_extensions config with server and client validation Add $cfg['disallowed_extensions'] as a single-purpose blacklist field (supersedes MR !39's allowed/forbidden approach per maintainer feedback). Server-side validation runs in both the direct-upload and async-init branches of script.php, covering browser and CLI/curl uploads alike. Client-side JS mirrors the existing file-size check, warning the user and hiding the send button before they submit an upload with a disallowed extension, and the disallowed list is shown next to the file-size hint on the upload form. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01MGzCMiwvovH9jLpoAJZvkF ---