From: Jan Schneider Date: Thu, 18 Mar 2010 16:19:09 +0000 (+0100) Subject: Fix undefined temp file name. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=42064992d1a55b500995e0c429baa0bc44ec48a1;p=horde.git Fix undefined temp file name. --- 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);