From: Steffen Kamper Date: Fri, 16 Jan 2009 18:21:11 +0000 (+0000) Subject: Fixed bug #10157: t3lib/config_default.php textfile_ext should be updated to include... X-Git-Tag: TYPO3_4-3-0alpha2~281 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/e11a850f6760cdc9a3962113a95424ea972b74ba Fixed bug #10157: t3lib/config_default.php textfile_ext should be updated to include xml and other text types git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4731 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index 90a52aee0e00..7b994c26d122 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2009-01-16 Steffen Kamper + * Fixed bug #10157: t3lib/config_default.php textfile_ext should be updated to include xml and other text types * Fixed bug #9867: Adding T3_SERVICES to configuration modul diff --git a/t3lib/config_default.php b/t3lib/config_default.php index 209c19053f77..7e625537a2c5 100755 --- a/t3lib/config_default.php +++ b/t3lib/config_default.php @@ -20,7 +20,7 @@ if (!defined ('PATH_typo3conf')) die ('The configuration path was not properly define('FILE_DENY_PATTERN_DEFAULT', '\.php[3-6]?(\..*)?$|^\.htaccess$'); //Security related constant: Comma separated list of file extensions that should be registered as php script file extensions -define('PHP_EXTENSIONS_DEFAULT', 'php,php3,php4,php5,php6'); +define('PHP_EXTENSIONS_DEFAULT', 'php,php3,php4,php5,php6,phpsh,inc'); $TYPO3_CONF_VARS = Array( 'GFX' => array( // Configuration of the image processing features in TYPO3. 'IM' and 'GD' are short for ImageMagick and GD library respectively. @@ -76,7 +76,7 @@ $TYPO3_CONF_VARS = Array( 'curlProxyTunnel' => 0, // Boolean: If set, use a tunneled connection through the proxy (usefull for websense etc.). 'curlProxyUserPass' => '', // String: Proxyserver authentication user:pass. 'form_enctype' => 'multipart/form-data', // String: This is the default form encoding type for most forms in TYPO3. It allows for file uploads to be in the form. However if file-upload is disabled for your PHP version even ordinary data sent with this encryption will not get to the server. So if you have file_upload disabled, you will have to change this to eg. 'application/x-www-form-urlencoded' - 'textfile_ext' => 'txt,html,htm,css,inc,tmpl,js,sql,'.PHP_EXTENSIONS_DEFAULT, // Text file extensions. Those that can be edited. Executable PHP files may not be editable in webspace if disallowed! + 'textfile_ext' => 'txt,html,htm,css,tmpl,js,sql,xml,csv,' . PHP_EXTENSIONS_DEFAULT, // Text file extensions. Those that can be edited. Executable PHP files may not be editable in webspace if disallowed! 'contentTable' => '', // This is the page-content table (Normally 'tt_content') 'T3instID' => 'N/A', // A unique installation ID - not used yet. The idea is that a TYPO3 installation can identify itself by this ID string to the Extension Repository on TYPO3.org so that we can keep a realistic count of serious TYPO3 installations. 'binPath' => '', // String: List of absolute paths where external programs should be searched for. Eg. '/usr/local/webbin/,/home/xyz/bin/'. (ImageMagick path have to be configured separately) @@ -536,4 +536,4 @@ $SIM_EXEC_TIME = $EXEC_TIME; // $SIM_EXEC_TIME is set to $EXEC_TIME but can be $ACCESS_TIME = $EXEC_TIME - ($EXEC_TIME % 60); // $ACCESS_TIME is a common time in minutes for access control $SIM_ACCESS_TIME = $ACCESS_TIME; // if $SIM_EXEC_TIME is changed this value must be set accordingly -?> \ No newline at end of file +?>