From 135c0185f5209c909655cd5c188d735f31b29ed9 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Mon, 28 Nov 2011 14:13:08 +0000 Subject: [PATCH] Use PHPExcel_Shared_File::sys_get_temp_dir() for temporary zip file directory rather than ./ git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83400 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Classes/PHPExcel/Writer/Excel2007.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Writer/Excel2007.php b/Classes/PHPExcel/Writer/Excel2007.php index 477d2db0..7823d0f3 100644 --- a/Classes/PHPExcel/Writer/Excel2007.php +++ b/Classes/PHPExcel/Writer/Excel2007.php @@ -193,7 +193,7 @@ class PHPExcel_Writer_Excel2007 implements PHPExcel_Writer_IWriter // If $pFilename is php://output or php://stdout, make it a temporary file... $originalFilename = $pFilename; if (strtolower($pFilename) == 'php://output' || strtolower($pFilename) == 'php://stdout') { - $pFilename = @tempnam('./', 'phpxltmp'); + $pFilename = @tempnam(PHPExcel_Shared_File::sys_get_temp_dir(), 'phpxltmp'); if ($pFilename == '') { $pFilename = $originalFilename; }