Improved entropy for report file urls.
[fa-stable.git] / reporting / rep707.php
index 64dea035bcb8ea83522bbd47fb88e158a5d916c6..e05c4fe8338b88ecc29aca6d1e3b9eb9df846dbc 100644 (file)
@@ -331,7 +331,7 @@ function print_profit_and_loss_statement()
                $pg->skin      = $graph_skin;
                $pg->built_in  = false;
                $pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != ".");
-               $filename = company_path(). "/pdf_files/". uniqid("").".png";
+               $filename = company_path(). "/pdf_files/". random_id().".png";
                $pg->display($filename, true);
                $w = $pg->width / 1.5;
                $h = $pg->height / 1.5;