diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-15 19:10:52 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-15 19:39:18 +0200 |
commit | bdbeabafa7ee6596934f7a84c4574f434e12fe1f (patch) | |
tree | 90a17fca2e4b35ad68d9dfe9a273eb4a0d68b109 /apps/files/openapi.json | |
parent | 8c571dda47e8fcbaa85513b90c80bc101375ca0f (diff) | |
download | nextcloud-server-bdbeabafa7ee6596934f7a84c4574f434e12fe1f.tar.gz nextcloud-server-bdbeabafa7ee6596934f7a84c4574f434e12fe1f.zip |
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>
Diffstat (limited to 'apps/files/openapi.json')
-rw-r--r-- | apps/files/openapi.json | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files/openapi.json b/apps/files/openapi.json index 7fc6bc3e0b0..6fff32e4854 100644 --- a/apps/files/openapi.json +++ b/apps/files/openapi.json @@ -33,6 +33,7 @@ "bigfilechunking", "blacklisted_files", "forbidden_filenames", + "forbidden_filename_basenames", "forbidden_filename_characters", "forbidden_filename_extensions", "directEditing" @@ -57,6 +58,12 @@ "type": "string" } }, + "forbidden_filename_basenames": { + "type": "array", + "items": { + "type": "string" + } + }, "forbidden_filename_characters": { "type": "array", "items": { |