diff options
| author | Eliot Whalan <ewhal@pantsu.cat> | 2016-06-19 12:38:56 +0200 |
|---|---|---|
| committer | Eliot Whalan <ewhal@pantsu.cat> | 2016-06-19 12:38:56 +0200 |
| commit | be85d8aad3bf3483de9b8bc409337b7252e94059 (patch) | |
| tree | 0fafb7d0e973ddc0eba2e9898428565e295128f2 /php/includes | |
| parent | 1ada6d94988cc182039c04b21f5209b0dc25e4cb (diff) | |
Introduce mime type whitelist
Diffstat (limited to 'php/includes')
| -rw-r--r-- | php/includes/settings.inc.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/php/includes/settings.inc.php b/php/includes/settings.inc.php index 01a0f86..f8c78cb 100644 --- a/php/includes/settings.inc.php +++ b/php/includes/settings.inc.php @@ -81,14 +81,26 @@ define('POMF_FILES_LENGTH', 6); */ define('POMF_URL', 'https://i.pantsu.cat/'); - -/* * +/** * Blocked mime types * @param string[] $FILTER_MIME blocked mime types */ $FILTER_MIME = array("") /** + * Whitelisted mime types + * @param bool $WHIELIST to enable whitelist of mime types + */ + +define('WHITELSIST', false); + +/** + * Whitelisted mime types + * @param string[] $WHITELIST_MIME_MIME allowed mime types + */ +$WHITELIST_MIME = array("") + +/** * Double dot file extensions * * Pomf keeps the last file extension for the uploaded file. In other words, an |
