Fixed input sanitization.
[fa-stable.git] / reporting / rep707.php
index 73180d2e1a6e229e0d0d1319ee4e7febcb9557e2..211e504fe473aa04a68eca5a7cd2d4de2f09d60a 100644 (file)
@@ -324,9 +324,8 @@ function print_profit_and_loss_statement()
                $pg->type      = $graphics;
                $pg->skin      = $graph_skin;
                $pg->built_in  = false;
-               $pg->fontfile  = $path_to_root . "/reporting/fonts/Vera.ttf";
                $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;