X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/6072ff00f2f58e59e2e1138771038b42bc9f32aa..3d9beabc77b40f26d2ae76269d03ca1c379f0bd0:/reports.php diff --git a/reports.php b/reports.php index 0565cf71..79c011f9 100644 --- a/reports.php +++ b/reports.php @@ -35,6 +35,7 @@ import('Period'); import('ttProjectHelper'); import('ttFavReportHelper'); import('ttClientHelper'); +import('ttReportHelper'); // Access check. if (!(ttAccessAllowed('view_own_reports') || ttAccessAllowed('view_reports') || ttAccessAllowed('view_all_reports'))) { @@ -334,6 +335,9 @@ if ($request->isPost()) { } $bean->saveBean(); + // Check some more values. TODO: Perhaps it's not a good place to check values, re-evaluate this. + // Also make sure other post variations are sane. + if (!ttReportHelper::verifyBean($bean)) $err->add($i18n->get('error.sys')); if ($err->no()) { // Now we can go ahead and create a report.