summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-05-03 12:21:41 +0200
committerbbaetz%acm.org <>2003-05-03 12:21:41 +0200
commitc000c0a480f2cb73f2b0b89550bbd8e496b73c9d (patch)
tree0f3e80cf224153994718536870d09c3c80bfb653 /Bugzilla/Search.pm
parent2f45b9d005d1c3d750e3bee7295940fc5760fa5b (diff)
downloadbugzilla-c000c0a480f2cb73f2b0b89550bbd8e496b73c9d.tar.gz
bugzilla-c000c0a480f2cb73f2b0b89550bbd8e496b73c9d.tar.xz
Bug 204104 - internal error in Search.pm when searching for invalid
keywords/email patch by mike.morgan@oregonstate.edu (michael morgan) r=bbaetz a=justdave
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r--Bugzilla/Search.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 1637671f0..171a1b824 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -34,6 +34,7 @@ use vars qw($userid);
package Bugzilla::Search;
use Bugzilla::Config;
+use Bugzilla::Error;
use Bugzilla::Util;
use Date::Format;
@@ -103,7 +104,7 @@ sub init {
my $c = trim($params->param('votes'));
if ($c ne "") {
if ($c !~ /^[0-9]*$/) {
- &::ThrowUserError("illegal_at_least_x_votes",
+ ThrowUserError("illegal_at_least_x_votes",
{ value => $c });
}
push(@specialchart, ["votes", "greaterthan", $c - 1]);
@@ -217,7 +218,7 @@ sub init {
my $c = trim($params->param('changedin'));
if ($c ne "") {
if ($c !~ /^[0-9]*$/) {
- &::ThrowUserError("illegal_changed_in_last_x_days",
+ ThrowUserError("illegal_changed_in_last_x_days",
{ value => $c });
}
push(@specialchart, ["changedin",
@@ -460,10 +461,10 @@ sub init {
$t = "greaterthan";
}
if ($field eq "ispatch" && $v ne "0" && $v ne "1") {
- &::ThrowUserError("illegal_attachment_is_patch");
+ ThrowUserError("illegal_attachment_is_patch");
}
if ($field eq "isobsolete" && $v ne "0" && $v ne "1") {
- &::ThrowUserError("illegal_is_obsolete");
+ ThrowUserError("illegal_is_obsolete");
}
$f = "$table.$field";
},
@@ -992,7 +993,7 @@ sub SqlifyDate {
}
my $date = str2time($str);
if (!defined($date)) {
- &::ThrowUserError("illegal_date", { date => $str });
+ ThrowUserError("illegal_date", { date => $str });
}
return time2str("%Y-%m-%d %H:%M:%S", $date);
}