Permalink
Browse files

Fixes problem with index files when none existed before

git-svn-id: svn://cherokee-project.com/cherokee/trunk@5077 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
1 parent 089772b commit c13998e5abb83228f6de169784814daff4944cb3 taher committed May 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/wizards/php.py
View
@@ -129,7 +129,7 @@ def wizard_php_add (key):
CTK.cfg['%s!timeout' %(next)] = timeout
# Index files
- indexes = CTK.cfg.get_val ('%s!directory_index' %(key), '').split(',')
+ indexes = filter (None, CTK.cfg.get_val ('%s!directory_index' %(key), '').split(','))
if not 'index.php' in indexes:
indexes.append ('index.php')
CTK.cfg['%s!directory_index' %(key)] = ','.join(indexes)

0 comments on commit c13998e

Please sign in to comment.