Improved entropy for report file urls.
[fa-stable.git] / reporting / includes / pdf_report.inc
index 6b9b45c9f637c53b089a3a016eeefae8d93c9984..dd0ae91826016175edd6b3d048f93bc2f1c5bbcc 100644 (file)
@@ -957,7 +957,7 @@ class FrontReport extends Cpdf
                        }
                        // do not use standard filenames or your sensitive company data 
                        // are world readable
-                       $fname = $dir.'/'.uniqid('').'.pdf';
+                       $fname = $dir.'/'.random_id().'.pdf';
                        $this->Output($fname, 'F');
 
                        if ($email == 1)