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
d38fe0e5
Commit
d38fe0e5
authored
Mar 08, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch by Brian Duggan <bduggan@oven.com> -- security improvements.
parent
77f66018
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
5 deletions
+13
-5
CGI.pl
CGI.pl
+3
-0
buglist.cgi
buglist.cgi
+3
-0
createattachment.cgi
createattachment.cgi
+1
-0
reports.cgi
reports.cgi
+4
-4
showattachment.cgi
showattachment.cgi
+1
-1
showdependencygraph.cgi
showdependencygraph.cgi
+1
-0
No files found.
CGI.pl
View file @
d38fe0e5
...
...
@@ -842,6 +842,9 @@ sub CheckIfVotedConfirmed {
sub
DumpBugActivity
{
my
(
$id
,
$starttime
)
=
(
@_
);
my
$datepart
=
""
;
die
"Invalid id: $id"
unless
$id
=~
/^\s*\d+\s*$/
;
if
(
defined
$starttime
)
{
$datepart
=
"and bugs_activity.bug_when >= $starttime"
;
}
...
...
buglist.cgi
View file @
d38fe0e5
...
...
@@ -170,6 +170,7 @@ sub GenerateSQL {
}
if
(
defined
$F
{
'sql'
})
{
die
"Invalid sql: $F{'sql'}"
if
$F
{
'sql'
}
=~
/;/
;
push
(
@wherepart
,
"( $F{'sql'} )"
);
}
...
...
@@ -887,6 +888,8 @@ if (defined $::FORM{'order'} && $::FORM{'order'} ne "") {
$::FORM
{
'order'
}
=~
s/assign\.login_name/map_assigned_to.login_name/g
;
# Another backwards compatability hack.
die
"Invalid order: $::FORM{'order'}"
unless
$::FORM
{
'order'
}
=~
/^([a-zA-Z0-9_., ]+)$/
;
ORDER:
for
(
$::FORM
{
'order'
})
{
/\./
&&
do
{
# This (hopefully) already has fieldnames in it, so we're done.
...
...
createattachment.cgi
View file @
d38fe0e5
...
...
@@ -41,6 +41,7 @@ confirm_login();
print
"Content-type: text/html\n\n"
;
my
$id
=
$::FORM
{
'id'
};
die
"invalid id: $id"
unless
$id
=~
/^\s*\d+\s*$/
;
PutHeader
(
"Create an attachment"
,
"Create attachment"
,
"Bug $id"
);
...
...
reports.cgi
View file @
d38fe0e5
...
...
@@ -206,7 +206,7 @@ and bugs.reporter = report.userid
FIN
if
(
$::FORM
{
'product'
}
ne
"-All-"
)
{
$query
.=
"and bugs.product=
'$::FORM{'product'}'"
;
$query
.=
"and bugs.product=
"
.
SqlQuote
(
$::FORM
{
'product'
})
;
}
$query
.=
<<FIN;
...
...
@@ -572,7 +572,7 @@ sub most_doomed_for_milestone
my
$query
;
$query
=
"select distinct assigned_to from bugs where target_milestone=\"$ms\""
;
if
(
$::FORM
{
'product'
}
ne
"-All-"
)
{
$query
.=
"and bugs.product=
'$::FORM{'product'}'"
;
$query
.=
"and bugs.product=
"
.
SqlQuote
(
$::FORM
{
'product'
})
;
}
$query
.=
<<FIN;
and
...
...
@@ -600,7 +600,7 @@ FIN
{
my
$query
=
"select count(bug_id) from bugs,profiles where target_milestone=\"$ms\" and userid=assigned_to and userid=\"$person\""
;
if
(
$::FORM
{
'product'
}
ne
"-All-"
)
{
$query
.=
"and bugs.product=
'$::FORM{'product'}'
"
;
$query
.=
"and bugs.product=
"
.
SqlQuote
(
$::FORM
{
'product'
})
";
}
$query .= <<FIN;
and
...
...
@@ -696,7 +696,7 @@ sub most_recently_doomed
my
$query
;
$query
=
"select distinct assigned_to from bugs where bugs.bug_status='NEW' and target_milestone='' and bug_severity!='enhancement' and status_whiteboard='' and (product='Browser' or product='MailNews')"
;
if
(
$::FORM
{
'product'
}
ne
"-All-"
)
{
$query
.=
"and bugs.product=
'$::FORM{'product'}'"
;
$query
.=
"and bugs.product=
"
.
SqlQuote
(
$::FORM
{
'product'
})
;
}
# End build up $query string
...
...
showattachment.cgi
View file @
d38fe0e5
...
...
@@ -29,7 +29,7 @@ ConnectToDatabase();
my
@row
;
if
(
defined
$::FORM
{
'attach_id'
})
{
SendSQL
(
"select mimetype, thedata from attachments where attach_id =
$::FORM{'attach_id'}"
);
SendSQL
(
"select mimetype, thedata from attachments where attach_id =
"
.
SqlQuote
(
$::FORM
{
'attach_id'
}
);
@row
=
FetchSQLData
();
}
if
(
!
@row
)
{
...
...
showdependencygraph.cgi
View file @
d38fe0e5
...
...
@@ -26,6 +26,7 @@ use strict;
require
"CGI.pl"
;
my
$id
=
$::FORM
{
'id'
};
die
"Invalid id: $id"
unless
$id
=~
/^\s*\d+\s*$/
;
my
$urlbase
=
Param
(
"urlbase"
);
my
%
seen
;
...
...
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