Fixed input sanitization.
[fa-stable.git] / reporting / rep707.php
index 68b62694944c0f2928156c88b612523851a4c25b..211e504fe473aa04a68eca5a7cd2d4de2f09d60a 100644 (file)
@@ -325,7 +325,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/test.png";
+               $filename = company_path(). "/pdf_files/". uniqid("").".png";
                $pg->display($filename, true);
                $w = $pg->width / 1.5;
                $h = $pg->height / 1.5;