Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
c000c0a4
Commit
c000c0a4
authored
May 03, 2003
by
bbaetz%acm.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
parent
2f45b9d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Search.pm
Bugzilla/Search.pm
+6
-5
No files found.
Bugzilla/Search.pm
View file @
c000c0a4
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment