Task #44999
closedswiftmailer using sys_get_temp_dir
0%
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!
Updated by Christian Kuhn almost 12 years ago
looks like that was fixed in the swiftmailer package on github already ...
Updated by Jigal van Hemert almost 12 years ago
It seems rather difficult to convince RMs to ship updated contributed packages :-(
Updated by Thorsten Kahler almost 12 years ago
- Status changed from New to Accepted
@Christian: Could you please provide a link?
Updated by Mathias Brodala about 11 years ago
Thorsten Kahler wrote:
@Christian: Could you please provide a link?
Maybe this one:
https://github.com/swiftmailer/swiftmailer/commit/162b5d01146a59a38b9022a0bf9a06f0e24a2b8f
Updated by Mathias Schreiber almost 10 years ago
- Status changed from Accepted to Closed
Updated by Guillaume Drouin almost 8 years ago
- TYPO3 Version changed from 4.7 to 6.2
I have the same problem in typo3 6.2
in /contrib/swiftmailer/preferences.php
->setTempDir(sys_get_temp_dir()) should be ->setTempDir(ini_get('upload_tmp_dir')) to have the complete directory. Else the directory can't be created there.
/contrib/swiftmailer/classes/Swift/KeyCache/DiskKeyCache.php
at the line 277
if (!mkdir($cacheDir)) {
Updated by Guillaume Drouin almost 8 years ago
- TYPO3 Version changed from 6.2 to 4.7