Improved entropy for report file urls.
[fa-stable.git] / reporting / includes / excel_report.inc
index ef387adaf1702f7d7f6728db7c33577281292a75..c6f0d4436039b97519644a57e94f08c915baae3d 100644 (file)
@@ -81,7 +81,7 @@ class FrontReport extends Spreadsheet_Excel_Writer_Workbook
                $rtl = ($_SESSION['language']->dir == 'rtl');
                $this->code = strtolower($_SESSION['language']->encoding);
                $this->filename = $filename.".xls";
-               $this->unique_name = uniqid('').".xls";
+               $this->unique_name = random_id().".xls";
                $this->path = company_path(). '/pdf_files';
                $this->Spreadsheet_Excel_Writer_Workbook($this->path."/".$this->unique_name);
                if ($this->code != "iso-8859-1")