From 42064992d1a55b500995e0c429baa0bc44ec48a1 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 18 Mar 2010 17:19:09 +0100 Subject: [PATCH] Fix undefined temp file name. --- framework/VFS/lib/VFS/ftp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/VFS/lib/VFS/ftp.php b/framework/VFS/lib/VFS/ftp.php index bfdca4b77..4eee142ea 100644 --- a/framework/VFS/lib/VFS/ftp.php +++ b/framework/VFS/lib/VFS/ftp.php @@ -226,7 +226,8 @@ class VFS_ftp extends VFS public function writeData($path, $name, $data, $autocreate = false) { $this->_checkQuotaWrite('string', $data); - file_put_contents(tempnam('null', 'vfs'), $data); + $tmpFile = tempnam(null, 'vfs'); + file_put_contents($tmpFile, $data); try { $this->write($path, $name, $tmpFile, $autocreate); unlink($tmpFile); -- 2.11.0