diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2023-09-22 14:22:04 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-10-04 11:12:44 +0200 |
commit | dbeb526bbab64e051958e1194e32903c2420e40d (patch) | |
tree | 3e976dec8699518e0f5db13051430aedd0225807 /config/config.sample.php | |
parent | 4756807f2e72b1dcd8ba11e038bcd5e01d41044a (diff) | |
download | nextcloud-server-dbeb526bbab64e051958e1194e32903c2420e40d.tar.gz nextcloud-server-dbeb526bbab64e051958e1194e32903c2420e40d.zip |
fix(files): disallow illegal characters
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'config/config.sample.php')
-rw-r--r-- | config/config.sample.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index 32354966949..3db99c68c06 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -1934,6 +1934,17 @@ $CONFIG = [ 'blacklisted_files' => ['.htaccess'], /** + * Blacklist characters from being used in filenames. This is useful if you + * have a filesystem or OS which does not support certain characters like windows. + * + * Example for windows systems: ``array('?', '<', '>', ':', '*', '|', '"', chr(0), "\n", "\r")`` + * see https://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits + * + * Defaults to ``array()`` + */ +'forbidden_chars' => [], + +/** * If you are applying a theme to Nextcloud, enter the name of the theme here. * The default location for themes is ``nextcloud/themes/``. * |