summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-16 02:43:35 +0200
committerlpsolit%gmail.com <>2005-08-16 02:43:35 +0200
commit746013729e6377357efb68de8d7f2fd93e25a07c (patch)
tree1aabd9f01c7cf495ee677b23b5452abbeed96228 /Bugzilla/Search.pm
parent09756eda41e62f1b216c38338c6d0702dccc7502 (diff)
downloadbugzilla-746013729e6377357efb68de8d7f2fd93e25a07c.tar.gz
bugzilla-746013729e6377357efb68de8d7f2fd93e25a07c.tar.xz
Bug 304653: remove 'use Bugzilla::Error' from Util.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r--Bugzilla/Search.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 0b1ac94ba..6255ede5d 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -350,14 +350,18 @@ sub init {
if ($params->param('deadlinefrom')){
$deadlinefrom = $params->param('deadlinefrom');
- Bugzilla::Util::ValidateDate($deadlinefrom, 'deadlinefrom');
+ validate_date($deadlinefrom)
+ || ThrowUserError('illegal_date', {date => $deadlinefrom,
+ format => 'YYYY-MM-DD'});
$sql_deadlinefrom = &::SqlQuote($deadlinefrom);
push(@wherepart, "bugs.deadline >= $sql_deadlinefrom");
}
if ($params->param('deadlineto')){
$deadlineto = $params->param('deadlineto');
- Bugzilla::Util::ValidateDate($deadlineto, 'deadlineto');
+ validate_date($deadlineto)
+ || ThrowUserError('illegal_date', {date => $deadlineto,
+ format => 'YYYY-MM-DD'});
$sql_deadlineto = &::SqlQuote($deadlineto);
push(@wherepart, "bugs.deadline <= $sql_deadlineto");
}