Project

General

Profile

Actions

Task #44999

closed

swiftmailer using sys_get_temp_dir

Added by Arno Dudek over 11 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-01-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

swiftmailer using sys_get_temp_dir to get the /tmp directory. This will return /tmp at my host but it will be something like /home/.sites/123/site132/tmp

A comment on PHP site:

… This behaviour is inconsistent across systems, so you have keep an eye on it.

This function does not account for virtualhost-specific modifications to the temp path and/or open_basedir:

http://php.net/sys_get_temp_dir

A solution will be to change the file typo3/contrib/swiftmailer/preferences.php and use ini_get('upload_tmp_dir') instead of sys_get_temp_dir()

or making a fall back of both.

Thanks!

Actions

Also available in: Atom PDF