From da1e1077c91300e28b0134255fe1d90b5890bbdc Mon Sep 17 00:00:00 2001 From: Chris Smith <chris.eureka@jalakai.co.uk> Date: Tue, 8 Apr 2008 03:43:39 +0200 Subject: [PATCH] update io_mktmpdir() to use $conf['tmpdir'] and mt_rand() darcs-hash:20080408014339-f07c6-63870bfa4e45d05275cf46993bee62d61a6cc5a8.gz --- inc/io.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/io.php b/inc/io.php index eb9366c25..6a20f319a 100644 --- a/inc/io.php +++ b/inc/io.php @@ -447,8 +447,8 @@ function io_mkdir_ftp($dir){ function io_mktmpdir() { global $conf; - $base = $conf['savedir'].'/tmp/'; - $dir = md5(uniqid(rand(), true)); + $base = $conf['tmpdir']; + $dir = md5(uniqid(mt_rand(), true)); $tmpdir = $base.$dir; if(io_mkdir_p($tmpdir)) { -- GitLab