Project

General

Profile

Actions

Bug #18582

closed

Files with extension .php are not editable

Added by Erwin Hontheim over 16 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-04-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

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).

Actions #2

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.

Actions #3

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

Actions #4

Updated by Erwin Hontheim over 16 years ago

OK, works fine.

Actions

Also available in: Atom PDF