Index: typo3/file_newfolder.php =================================================================== --- typo3/file_newfolder.php (revision 5804) +++ typo3/file_newfolder.php (working copy) @@ -251,10 +251,18 @@ $pageContent.= $this->doc->sectionEnd(); $pageContent.= '
'; + // Create list of allowed file extensions + $fileExtList = array(); + $textfileExt = t3lib_div::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['SYS']['textfile_ext'], TRUE); + foreach ($textfileExt as $fileExt) { + if (!preg_match('/' . $GLOBALS['TYPO3_CONF_VARS']['BE']['fileDenyPattern'] . '/i', '.' . $fileExt)) { + $fileExtList[] = '*.' . $fileExt; + } + } // Add form fields for creation of a new, blank text file: $code='
-

['.htmlspecialchars($GLOBALS['TYPO3_CONF_VARS']['SYS']['textfile_ext']).']

+

['.htmlspecialchars(implode(', ', $fileExtList)).']

doc->formWidth(20).' type="text" name="file[newfile][0][data]" onchange="changed=true;" />