From e7ddd2960bd9219db7ddbb11fa70df649555a741 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 15 Jun 2013 19:53:23 +0100 Subject: [PATCH] use upload_tmp_dir as temp place for transloading, see #297 --- ext/upload/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/upload/main.php b/ext/upload/main.php index d6396b12..91429cf2 100644 --- a/ext/upload/main.php +++ b/ext/upload/main.php @@ -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)) {