X-Git-Url: https://git.p6c8.net/jirafeau/pcanterino.git/blobdiff_plain/39ff6f56cbd8157556111441c987f2dd3258090a..b8fdbeedafcd3fc113a2b2c5ef8f2f814b691f4a:/lib/config.original.php diff --git a/lib/config.original.php b/lib/config.original.php index 37c87eb..e140067 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -170,6 +170,15 @@ $cfg['one_time_download_preselected'] = false; */ $cfg['maximal_upload_size'] = 0; +/* Forbid specific file extensions from being uploaded. + * Leave empty to allow every extension. + * Extensions are matched case-insensitively and without the leading dot. + * Compound extensions such as 'tar.gz' are supported. Note that 'gz' + * also covers 'tar.gz', while 'tar.gz' leaves plain '.gz' files allowed. + * $cfg['disallowed_extensions'] = array('exe', 'bat', 'sh', 'php', 'tar.gz'); + */ +$cfg['disallowed_extensions'] = array(); + /* Proxy IP * If the installation is behind some reverse proxies, it is possible to set * the allowed proxy IP.