summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-10-05 16:48:31 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-10-05 16:48:31 +1100
commit6030dc6a9b276f82b96b6d6888d7135fb3db209a (patch)
treef53becb1b8c6cf04da12e47175ad28f4d037f462
parentd7f32670c52ce8308d3d1966cf702ab63d795162 (diff)
...
-rw-r--r--inc/config.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php
index b2f4e7c8..ba435609 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -36,6 +36,7 @@
'dnsbl' => Array(),
'dnsbl_exceptions' => Array(),
'remote' => Array(),
+ 'allowed_ext' => Array(),
'allowed_ext_files' => Array(),
'file_icons' => Array()
);
@@ -328,6 +329,11 @@
$config['ie_mime_type_detection'] = '/<(?:body|head|html|img|plaintext|pre|script|table|title|a href|channel|scriptlet)/i';
// Allowed image file extensions
+ $config['allowed_ext'][] = 'jpg';
+ $config['allowed_ext'][] = 'jpeg';
+ $config['allowed_ext'][] = 'bmp';
+ $config['allowed_ext'][] = 'gif';
+ $config['allowed_ext'][] = 'png';
// $config['allowed_ext'][] = 'svg';
// Allowed additional file extensions (not images; downloadable files)