From d171a249c5ac2b8e0bc155d9b05dd1a1a640b96c Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Thu, 14 Oct 2010 12:13:21 +0000 Subject: [PATCH] Its untrue that the list of extra allowed extensions for uploaded files has to start with a space - its even a little quirky since the code expands that to a regex like "/\.(|ext1|ext2...)$/", so in theory files which end up with a dot and without an extension would be allowed by this. For now we just fix the comment and indentation of the default configuration option. --- src/IDF/conf/idf.php-dist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IDF/conf/idf.php-dist b/src/IDF/conf/idf.php-dist index 997c068..1b22104 100644 --- a/src/IDF/conf/idf.php-dist +++ b/src/IDF/conf/idf.php-dist @@ -205,8 +205,8 @@ $cfg['db_database'] = 'website'; # put absolute path to the db if you # are using SQLite. # # The extension of the downloads are limited. You can add extra -# extensions here. The list must start with a space. -# $cfg['idf_extra_upload_ext'] = ' ext1 ext2'; +# extensions here. +# $cfg['idf_extra_upload_ext'] = 'ext1 ext2'; # # By default, the size of the downloads is limited to 2MB. # The php.ini upload_max_filesize configuration setting will