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
0c8cd681
Commit
0c8cd681
authored
May 25, 1999
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure login name is in canonical form.
parent
9c5e52a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
CGI.pl
CGI.pl
+5
-2
No files found.
CGI.pl
View file @
0c8cd681
...
@@ -282,7 +282,8 @@ sub quietly_check_login() {
...
@@ -282,7 +282,8 @@ sub quietly_check_login() {
if
(
defined
$::COOKIE
{
"Bugzilla_login"
}
&&
if
(
defined
$::COOKIE
{
"Bugzilla_login"
}
&&
defined
$::COOKIE
{
"Bugzilla_logincookie"
})
{
defined
$::COOKIE
{
"Bugzilla_logincookie"
})
{
ConnectToDatabase
();
ConnectToDatabase
();
SendSQL
(
"select profiles.groupset, profiles.login_name = "
.
SendSQL
(
"select profiles.groupset, profiles.login_name, "
.
"profiles.login_name = "
.
SqlQuote
(
$::COOKIE
{
"Bugzilla_login"
})
.
SqlQuote
(
$::COOKIE
{
"Bugzilla_login"
})
.
" and profiles.cryptpassword = logincookies.cryptpassword "
.
" and profiles.cryptpassword = logincookies.cryptpassword "
.
"and logincookies.hostname = "
.
"and logincookies.hostname = "
.
...
@@ -292,9 +293,11 @@ sub quietly_check_login() {
...
@@ -292,9 +293,11 @@ sub quietly_check_login() {
" and profiles.userid = logincookies.userid"
);
" and profiles.userid = logincookies.userid"
);
my
@row
;
my
@row
;
if
(
@row
=
FetchSQLData
())
{
if
(
@row
=
FetchSQLData
())
{
$loginok
=
$row
[
1
];
$loginok
=
$row
[
2
];
if
(
$loginok
)
{
if
(
$loginok
)
{
$::usergroupset
=
$row
[
0
];
$::usergroupset
=
$row
[
0
];
$::COOKIE
{
"Bugzilla_login"
}
=
$row
[
1
];
# Makes sure case is in
# canonical form.
}
}
}
}
}
}
...
...
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