]> source.dussan.org Git - nextcloud-server.git/commit
feat: Add `forbidden_filename_basenames` config option 46545/head
authorFerdinand Thiessen <opensource@fthiessen.de>
Mon, 15 Jul 2024 17:10:52 +0000 (19:10 +0200)
committerFerdinand Thiessen <opensource@fthiessen.de>
Mon, 15 Jul 2024 17:39:18 +0000 (19:39 +0200)
commitbdbeabafa7ee6596934f7a84c4574f434e12fe1f
tree90a17fca2e4b35ad68d9dfe9a273eb4a0d68b109
parent8c571dda47e8fcbaa85513b90c80bc101375ca0f
feat: Add `forbidden_filename_basenames` config option

This allows to configure forbidden filenames (the full filename like `.htaccess`)
and also forbidden basenames like `com0` where `com0`, `com0.txt` and `com0.tar.gz` will match.
We need this as only using basenames was too restrictive and will cause problems on some systems when updating.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/files/lib/Capabilities.php
apps/files/openapi.json
config/config.sample.php
lib/private/Files/FilenameValidator.php
tests/lib/Files/FilenameValidatorTest.php