diff --git a/lib/epm_system.class.php b/lib/epm_system.class.php index 5c310874..4fb16bed 100644 --- a/lib/epm_system.class.php +++ b/lib/epm_system.class.php @@ -272,7 +272,7 @@ function sys_get_temp_dir() { if (!empty($_ENV['TEMP'])) { return realpath($_ENV['TEMP']); } - $tempfile = tempnam(uniqid(rand(), TRUE), ''); + $tempfile = tempnam(sys_get_temp_dir(), 'prefix_'); if (file_exists($tempfile)) { unlink($tempfile); return realpath(dirname($tempfile));