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
70eb2109
Commit
70eb2109
authored
Jun 17, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 151053, ConnectToDatabase/quietly_check_login sometimes not called
early enough r=mattyt, jouni
parent
89aebbf6
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
49 additions
and
33 deletions
+49
-33
buglist.cgi
buglist.cgi
+17
-17
colchange.cgi
colchange.cgi
+1
-1
createaccount.cgi
createaccount.cgi
+3
-0
describecomponents.cgi
describecomponents.cgi
+2
-2
doeditparams.cgi
doeditparams.cgi
+1
-1
editcomponents.cgi
editcomponents.cgi
+1
-0
editgroups.cgi
editgroups.cgi
+1
-0
editkeywords.cgi
editkeywords.cgi
+1
-0
editmilestones.cgi
editmilestones.cgi
+1
-0
editparams.cgi
editparams.cgi
+1
-0
editproducts.cgi
editproducts.cgi
+1
-0
editusers.cgi
editusers.cgi
+1
-0
editversions.cgi
editversions.cgi
+1
-0
move.pl
move.pl
+1
-1
post_bug.cgi
post_bug.cgi
+1
-1
process_bug.cgi
process_bug.cgi
+1
-2
queryhelp.cgi
queryhelp.cgi
+2
-3
quips.cgi
quips.cgi
+5
-0
sidebar.cgi
sidebar.cgi
+1
-3
token.cgi
token.cgi
+1
-0
userprefs.cgi
userprefs.cgi
+2
-0
xml.cgi
xml.cgi
+3
-2
No files found.
buglist.cgi
View file @
70eb2109
...
...
@@ -66,14 +66,28 @@ ConnectToDatabase();
# Data and Security Validation
################################################################################
# Whether or not the user wants to change multiple bugs.
my
$dotweak
=
$::FORM
{
'tweak'
}
?
1
:
0
;
# Log the user in
if
(
$dotweak
)
{
confirm_login
();
if
(
!
UserInGroup
(
"editbugs"
))
{
DisplayError
(
"Sorry, you do not have sufficient privileges to edit
multiple bugs."
);
exit
;
}
GetVersionTable
();
}
else
{
quietly_check_login
();
}
# Determine the format in which the user would like to receive the output.
# Uses the default format if the user did not specify an output format;
# otherwise validates the user's choice against the list of available formats.
my
$format
=
ValidateOutputFormat
(
$::FORM
{
'format'
},
"list"
);
# Whether or not the user wants to change multiple bugs.
my
$dotweak
=
$::FORM
{
'tweak'
}
?
1
:
0
;
# Use server push to display a "Please wait..." message for the user while
# executing their query if their browser supports it and they are viewing
# the bug list as HTML and they have not disabled it by adding &serverpush=0
...
...
@@ -137,20 +151,6 @@ if ($::FORM{'cmdtype'} eq 'runnamed') {
$filename
=~
s/\s//
;
}
if
(
$dotweak
)
{
confirm_login
();
if
(
!
UserInGroup
(
"editbugs"
))
{
DisplayError
(
"Sorry, you do not have sufficient privileges to edit
multiple bugs."
);
exit
;
}
GetVersionTable
();
}
else
{
quietly_check_login
();
}
################################################################################
# Utilities
################################################################################
...
...
colchange.cgi
View file @
70eb2109
...
...
@@ -34,6 +34,7 @@ use vars qw(
require
"CGI.pl"
;
ConnectToDatabase
();
quietly_check_login
();
print
"Content-type: text/html\n"
;
...
...
@@ -41,7 +42,6 @@ print "Content-type: text/html\n";
# The master list not only says what fields are possible, but what order
# they get displayed in.
ConnectToDatabase
();
GetVersionTable
();
my
@masterlist
=
(
"opendate"
,
"changeddate"
,
"severity"
,
"priority"
,
...
...
createaccount.cgi
View file @
70eb2109
...
...
@@ -42,6 +42,9 @@ ConnectToDatabase();
# If we're using LDAP for login, then we can't create a new account here.
if
(
Param
(
'useLDAP'
))
{
# Just in case someone already has an account, let them get the correct
# footer on the error message
quietly_check_login
();
DisplayError
(
"This site is using LDAP for authentication. Please contact
an LDAP administrator to get a new account created."
,
"Can't create LDAP accounts"
);
...
...
describecomponents.cgi
View file @
70eb2109
...
...
@@ -34,10 +34,10 @@ use lib qw(.);
require
"CGI.pl"
;
ConnectToDatabase
();
GetVersionTable
();
quietly_check_login
();
GetVersionTable
();
if
(
!
defined
$::FORM
{
'product'
})
{
# Reference to a subset of %::proddesc, which the user is allowed to see
my
%
products
;
...
...
doeditparams.cgi
View file @
70eb2109
...
...
@@ -33,7 +33,7 @@ use vars %::param,
%::
param_default
,
@::param_list
;
ConnectToDatabase
();
confirm_login
();
print
"Content-type: text/html\n\n"
;
...
...
editcomponents.cgi
View file @
70eb2109
...
...
@@ -188,6 +188,7 @@ sub PutTrailer (@)
# Preliminary checks:
#
ConnectToDatabase
();
confirm_login
();
print
"Content-type: text/html\n\n"
;
...
...
editgroups.cgi
View file @
70eb2109
...
...
@@ -29,6 +29,7 @@ use lib ".";
require
"CGI.pl"
;
ConnectToDatabase
();
confirm_login
();
print
"Content-type: text/html\n\n"
;
...
...
editkeywords.cgi
View file @
70eb2109
...
...
@@ -108,6 +108,7 @@ sub Validate ($$) {
# Preliminary checks:
#
ConnectToDatabase
();
confirm_login
();
print
"Content-type: text/html\n\n"
;
...
...
editmilestones.cgi
View file @
70eb2109
...
...
@@ -146,6 +146,7 @@ sub PutTrailer (@)
# Preliminary checks:
#
ConnectToDatabase
();
confirm_login
();
print
"Content-type: text/html\n\n"
;
...
...
editparams.cgi
View file @
70eb2109
...
...
@@ -32,6 +32,7 @@ require "defparams.pl";
use
vars
@::param_desc
,
@::param_list
;
ConnectToDatabase
();
confirm_login
();
print
"Content-type: text/html\n\n"
;
...
...
editproducts.cgi
View file @
70eb2109
...
...
@@ -175,6 +175,7 @@ sub PutTrailer (@)
# Preliminary checks:
#
ConnectToDatabase
();
confirm_login
();
print
"Content-type: text/html\n\n"
;
...
...
editusers.cgi
View file @
70eb2109
...
...
@@ -231,6 +231,7 @@ sub PutTrailer (@)
# Preliminary checks:
#
ConnectToDatabase
();
confirm_login
();
print
"Content-type: text/html\n\n"
;
...
...
editversions.cgi
View file @
70eb2109
...
...
@@ -155,6 +155,7 @@ sub PutTrailer (@)
# Preliminary checks:
#
ConnectToDatabase
();
confirm_login
();
print
"Content-type: text/html\n\n"
;
...
...
move.pl
View file @
70eb2109
...
...
@@ -37,6 +37,7 @@ unless ( Param("move-enabled") ) {
}
ConnectToDatabase
();
confirm_login
();
sub
Log
{
my
(
$str
)
=
(
@_
);
...
...
@@ -80,7 +81,6 @@ if ( !defined $::FORM{'buglist'} ) {
exit
;
}
confirm_login
();
my
$exporter
=
$::COOKIE
{
"Bugzilla_login"
};
my
$movers
=
Param
(
"movers"
);
$movers
=~
s/\w?,\w?/|/g
;
...
...
post_bug.cgi
View file @
70eb2109
...
...
@@ -50,6 +50,7 @@ sub sillyness {
# Use global template variables.
use
vars
qw($vars $template)
;
ConnectToDatabase
();
confirm_login
();
...
...
@@ -89,7 +90,6 @@ if (defined $::FORM{'maketemplate'}) {
}
umask
0
;
ConnectToDatabase
();
# Some sanity checking
if
(
Param
(
"usebuggroupsentry"
)
&&
GroupExists
(
$product
))
{
...
...
process_bug.cgi
View file @
70eb2109
...
...
@@ -53,6 +53,7 @@ use vars qw(%versions
%superusergroupset
$next_bug)
;
ConnectToDatabase
();
my
$whoid
=
confirm_login
();
my
$requiremilestone
=
0
;
...
...
@@ -124,8 +125,6 @@ if ( Param("usetargetmilestone") ) {
CheckFormFieldDefined
(
\%::
FORM
,
'target_milestone'
);
}
ConnectToDatabase
();
#
# This function checks if there is a comment required for a specific
# function and tests, if the comment was given.
...
...
queryhelp.cgi
View file @
70eb2109
...
...
@@ -32,6 +32,8 @@ use lib qw(.);
require
"CGI.pl"
;
ConnectToDatabase
();
quietly_check_login
();
GetVersionTable
();
print
"Content-type: text/html\n\n"
;
...
...
@@ -558,8 +560,6 @@ user with the proper permissions can edit these keywords. The following is a lis
stored on this version of Bugzilla:
}
;
ConnectToDatabase
();
my
$tableheader
=
qq{
<p><table border="1" cellpadding="4" cellspacing="0">
<tr bgcolor="#6666FF">
...
...
@@ -609,7 +609,6 @@ while (MoreSQLData()) {
print
"</table><p>\n"
;
quietly_check_login
();
if
(
UserInGroup
(
"editkeywords"
))
{
print
qq{<p><a href="editkeywords.cgi">Edit keywords</a>\n}
;
...
...
quips.cgi
View file @
70eb2109
...
...
@@ -34,6 +34,11 @@ use lib qw(.);
require
"CGI.pl"
;
# Even though quips aren't (yet) in the database, we need to check
# logins for the footer
ConnectToDatabase
();
quietly_check_login
();
my
$action
=
$::FORM
{
'action'
}
||
""
;
if
(
$action
eq
"show"
)
{
...
...
sidebar.cgi
View file @
70eb2109
...
...
@@ -29,13 +29,11 @@ use vars qw(
)
;
ConnectToDatabase
();
quietly_check_login
();
# Needed for $::anyvotesallowed
GetVersionTable
();
# Check to see if the user has logged in yet.
quietly_check_login
();
###############################################################################
# Main Body Execution
###############################################################################
...
...
token.cgi
View file @
70eb2109
...
...
@@ -37,6 +37,7 @@ require "CGI.pl";
# Establish a connection to the database backend.
ConnectToDatabase
();
quietly_check_login
();
# Use the "Token" module that contains functions for doing various
# token-related tasks.
...
...
userprefs.cgi
View file @
70eb2109
...
...
@@ -359,6 +359,8 @@ sub DoPermissions {
###############################################################################
# Live code (not subroutine definitions) starts here
###############################################################################
ConnectToDatabase
();
confirm_login
();
GetVersionTable
();
...
...
xml.cgi
View file @
70eb2109
...
...
@@ -32,6 +32,9 @@ require "CGI.pl";
use
vars
qw($template $vars)
;
ConnectToDatabase
();
quietly_check_login
();
if
(
!
defined
$::FORM
{
'id'
}
||
!
$::FORM
{
'id'
})
{
print
"Content-Type: text/html\n\n"
;
$template
->
process
(
"bug/choose-xml.html.tmpl"
,
$vars
)
...
...
@@ -39,8 +42,6 @@ if (!defined $::FORM{'id'} || !$::FORM{'id'}) {
exit
;
}
quietly_check_login
();
my
$exporter
=
$::COOKIE
{
"Bugzilla_login"
}
||
undef
;
my
@ids
=
split
(
/[, ]+/
,
$::FORM
{
'id'
});
...
...
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