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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
7640676d
Commit
7640676d
authored
May 17, 2006
by
mozilla%colinogilvie.co.uk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 337747: config.cgi fails with an SQL error in Bugzilla::Keyword with no keywords defined
Patch by Colin Ogilvie <colin.ogilvie@gmail.com>; r=mkanat; a=justdave
parent
d72d5a40
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Keyword.pm
Bugzilla/Keyword.pm
+2
-4
No files found.
Bugzilla/Keyword.pm
View file @
7640676d
...
...
@@ -82,7 +82,7 @@ sub new_from_list {
my
$dbh
=
Bugzilla
->
dbh
;
my
$keywords
;
if
(
$id_list
)
{
if
(
@
$id_list
)
{
my
@detainted_ids
;
foreach
my
$id
(
@$id_list
)
{
detaint_natural
(
$id
)
||
...
...
@@ -94,9 +94,7 @@ sub new_from_list {
"SELECT $columns FROM keyworddefs WHERE id IN ("
.
join
(
','
,
@detainted_ids
)
.
")"
,
{
Slice
=>
{}});
}
else
{
ThrowCodeError
(
'bad_arg'
,
{
argument
=>
'id_list'
,
function
=>
'Bugzilla::Keyword::new_from_list'
});
return
[]
;
}
foreach
my
$keyword
(
@$keywords
)
{
...
...
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