-
- Downloads
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>
Showing
- apps/files/lib/Capabilities.php 2 additions, 1 deletionapps/files/lib/Capabilities.php
- apps/files/openapi.json 7 additions, 0 deletionsapps/files/openapi.json
- config/config.sample.php 12 additions, 0 deletionsconfig/config.sample.php
- lib/private/Files/FilenameValidator.php 48 additions, 23 deletionslib/private/Files/FilenameValidator.php
- tests/lib/Files/FilenameValidatorTest.php 58 additions, 27 deletionstests/lib/Files/FilenameValidatorTest.php
Loading
Please register or sign in to comment