summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index b1b9c8050..b330615ce 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -1103,7 +1103,9 @@ if (UserInGroup(Param('timetrackinggroup'))) {
DoComma();
$::query .= "deadline = ";
if ($cgi->param('deadline')) {
- Bugzilla::Util::ValidateDate($cgi->param('deadline'), 'YYYY-MM-DD');
+ validate_date($cgi->param('deadline'))
+ || ThrowUserError('illegal_date', {date => $cgi->param('deadline'),
+ format => 'YYYY-MM-DD'});
$::query .= SqlQuote($cgi->param('deadline'));
} else {
$::query .= "NULL" ;