Project

General

Profile

Bug #15220 ยป bug_1900.patch

Administrator Admin, 2005-11-19 10:50

View differences:

TYPO3core_testing/t3lib/class.t3lib_formmail.php 2005-11-19 10:48:21.000000000 +0100
$theName = $_FILES[$varname]['name'];
if ($theFile && @file_exists($theFile)) {
if (filesize($theFile) < 250000) {
if ((filesize($theFile) <= $GLOBALS['TYPO3_CONF_VARS']['FE']['formmailMaxFileSize']*1024) || !$GLOBALS['TYPO3_CONF_VARS']['FE']['formmailMaxFileSize']) {
$this->addAttachment($theFile, $theName);
}
}
TYPO3core_testing/t3lib/config_default.php 2005-11-19 10:32:02.000000000 +0100
'noPHPscriptInclude' => 0, // Boolean. If set, PHP-scripts are not included by TypoScript configurations, unless they reside in 'media/scripts/'-folder. This is a security option to ensure that users with template-access do not terrorize
'strictFormmail' => TRUE, // Boolean. If set, the internal "formmail" feature in TYPO3 will send mail ONLY to recipients which has been encoded by the system itself. This protects against spammers misusing the formmailer.
'secureFormmail' => TRUE, // Boolean. If set, the internal "formmail" feature in TYPO3 will send mail ONLY to the recipients that are defined in the form CE record. This protects against spammers misusing the formmailer.
'formmailMaxFileSize' => '250', // Integer. If set this is the max filesize in kb's for the "formmail" feature.
'compressionLevel' => 0, // Determines output compression of FE output. Makes output smaller but slows down the page generation depending on the compression level. Requires zlib in your PHP4 installation. Range 1-9, where 1 is least compression (approx. 50%) and 9 is greatest compression (approx 33%). 'true' as value will set the compression based on the system load (works with Linux, FreeBSD). Suggested value is 3. For more info, see class in t3lib/class.gzip_encode.php written by Sandy McArthur, Jr. <Leknor@Leknor.com>
'compressionDebugInfo' => 0, // Boolean. If set, then in the end of the pages, the sizes of the compressed and non-compressed document is output. This should be used ONLY as a test, because the content is compressed twice in order to output this statistics!
'pageNotFound_handling' => '', // How TYPO3 should handle requests for non-existing/accessible pages. false (default): The 'nearest' page is shown. TRUE or '1': An TYPO3 error box is displayed. Strings: redirect URL, eg. 'notfound.html' or 'http://www.domain.org/errors/notfound.html'. If prefixed with "READFILE:" then it will expect the remaining string to be a HTML file which will be read and outputted directly after having the marker "###CURRENT_URL###" substituted with REQUEST_URI and ###REASON### with reason text, for example: "READFILE:fileadmin/notfound.html". Another option is the prefix "USER_FUNCTION:" which will call a user function, eg. "USER_FUNCTION:typo3conf/pageNotFoundHandling.php:user_pageNotFound->pageNotFound" where the file must contain a class "user_pageNotFound" with a method "pageNotFound" inside with two parameters, $param and $ref
    (1-1/1)