use upload_tmp_dir as temp place for transloading, see #297

This commit is contained in:
Shish 2013-06-15 19:53:23 +01:00
parent 2859d58191
commit e7ddd2960b

View File

@ -332,7 +332,7 @@ class Upload extends Extension {
// PHP falls back to system default if /tmp fails, can't we just
// use the system default to start with? :-/
$tmp_filename = tempnam("/tmp", "shimmie_transload");
$tmp_filename = tempnam(ini_get('upload_tmp_dir'), "shimmie_transload");
$filename = basename($url);
if(!transload($url, $tmp_filename)) {