From 020b23ce2e531ee516882266e9f7feeb02578bbc Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 19 Mar 2017 14:39:50 +0100 Subject: [PATCH] Additional fix to unique filenames. --- includes/dashboard.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/dashboard.inc b/includes/dashboard.inc index 6bdc84c9..d5c5b17d 100644 --- a/includes/dashboard.inc +++ b/includes/dashboard.inc @@ -451,7 +451,7 @@ function source_graphic($today, $title, $x_axis, $pg, $graphic1, $graphic2=null, $pg->type = $type; $pg->skin = 1; $pg->built_in = false; - $filename = company_path(). "/pdf_files/". uniqid("").".png"; + $filename = company_path(). "/pdf_files/". random_id().".png"; $pg->display($filename, true); start_table(TABLESTYLE); start_row(); -- 2.30.2