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
61972658
Commit
61972658
authored
Jun 12, 1999
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some apache servers seem not to deliever the REMOTE_HOST environment var.
parent
b9d594e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
CGI.pl
CGI.pl
+7
-0
No files found.
CGI.pl
View file @
61972658
...
...
@@ -221,6 +221,7 @@ sub make_options {
my
$last
=
""
;
my
$popup
=
""
;
my
$found
=
0
;
$default
=
""
if
!
defined
$default
;
if
(
$src
)
{
foreach
my
$item
(
@$src
)
{
...
...
@@ -282,6 +283,9 @@ sub quietly_check_login() {
if
(
defined
$::COOKIE
{
"Bugzilla_login"
}
&&
defined
$::COOKIE
{
"Bugzilla_logincookie"
})
{
ConnectToDatabase
();
if
(
!
defined
$ENV
{
'REMOTE_HOST'
})
{
$ENV
{
'REMOTE_HOST'
}
=
$ENV
{
'REMOTE_ADDR'
};
}
SendSQL
(
"select profiles.groupset, profiles.login_name, "
.
"profiles.login_name = "
.
SqlQuote
(
$::COOKIE
{
"Bugzilla_login"
})
.
...
...
@@ -400,6 +404,9 @@ sub confirm_login {
exit
;
}
$::COOKIE
{
"Bugzilla_login"
}
=
$enteredlogin
;
if
(
!
defined
$ENV
{
'REMOTE_HOST'
})
{
$ENV
{
'REMOTE_HOST'
}
=
$ENV
{
'REMOTE_ADDR'
};
}
SendSQL
(
"insert into logincookies (userid,cryptpassword,hostname) values (@{[DBNameToIdAndCheck($enteredlogin)]}, @{[SqlQuote($realcryptpwd)]}, @{[SqlQuote($ENV{'REMOTE_HOST'})]})"
);
SendSQL
(
"select LAST_INSERT_ID()"
);
my
$logincookie
=
FetchOneColumn
();
...
...
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