Bug #18582
closedFiles with extension .php are not editable
0%
Description
Files with extension .php can not get created in fileadmin. Uploaded files with extension .php can get opened, but not saved.
(issue imported from #M8052)
Updated by Rob Vonk over 16 years ago
This is intended behaviour. The 'edit option' is more meant as 'view contents'. There's an option in settings:
[fileDenyPattern]
A regular expression that - if it matches a filename - will deny the file upload/rename or whatever in the webspace. Matching with eregi() (case-insensitive).
[BE][fileDenyPattern] = \.php$|\.php.$
If you change this, you should be able to save too (i didn't test it though).
Updated by Erwin Hontheim over 16 years ago
Hmmm. It's intended to work in that way.
But even with an empty [BE][fileDenyPattern] it's not possible to edit/save files with extension .php:
$TYPO3_CONF_VARS['BE']['fileDenyPattern'] = ''; // Modified or inserted by TYPO3 Install Tool.
// Updated by TYPO3 Install Tool 08-04-08 11:36:48
Whereas an upload was nevertheless possible with [BE][fileDenyPattern] = \.php$|\.php.$
There seems to be something wrong.
Updated by Freifeld over 16 years ago
Add this line to your localconf:
$TYPO3_CONF_VARS['BE']['fileExtensions']['webspace']['allow'] = 'php';
And you're able to handle with .php files in the backend