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.
master
Thomas Keller 2010-10-14 12:13:21 +00:00
parent d994e0efb0
commit d171a249c5
1 changed files with 2 additions and 2 deletions

View File

@ -205,8 +205,8 @@ $cfg['db_database'] = 'website'; # put absolute path to the db if you
# are using SQLite. # are using SQLite.
# #
# The extension of the downloads are limited. You can add extra # The extension of the downloads are limited. You can add extra
# extensions here. The list must start with a space. # extensions here.
# $cfg['idf_extra_upload_ext'] = ' ext1 ext2'; # $cfg['idf_extra_upload_ext'] = 'ext1 ext2';
# #
# By default, the size of the downloads is limited to 2MB. # By default, the size of the downloads is limited to 2MB.
# The php.ini upload_max_filesize configuration setting will # The php.ini upload_max_filesize configuration setting will