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
80d6208e
Commit
80d6208e
authored
Dec 14, 2005
by
karl%kornel.name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 313679: Changing email address in sudo mode logs user in as
impersonated user - Patch by A. Karl Kornel <karl@kornel.name> r=wurblzap a=justdave
parent
ae887eab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
userprefs.cgi
userprefs.cgi
+3
-1
No files found.
userprefs.cgi
View file @
80d6208e
...
@@ -420,9 +420,11 @@ sub SaveSavedSearches {
...
@@ -420,9 +420,11 @@ sub SaveSavedSearches {
my
$cgi
=
Bugzilla
->
cgi
;
my
$cgi
=
Bugzilla
->
cgi
;
# This script needs direct access to the username and password CGI variables,
# This script needs direct access to the username and password CGI variables,
# so we save them before their removal in Bugzilla->login
# so we save them before their removal in Bugzilla->login, and delete them
# prior to login if we might possibly be in an sudo session.
my
$bugzilla_login
=
$cgi
->
param
(
'Bugzilla_login'
);
my
$bugzilla_login
=
$cgi
->
param
(
'Bugzilla_login'
);
my
$bugzilla_password
=
$cgi
->
param
(
'Bugzilla_password'
);
my
$bugzilla_password
=
$cgi
->
param
(
'Bugzilla_password'
);
$cgi
->
delete
(
'Bugzilla_login'
,
'Bugzilla_password'
)
if
(
$cgi
->
cookie
(
'sudo'
));
Bugzilla
->
login
(
LOGIN_REQUIRED
);
Bugzilla
->
login
(
LOGIN_REQUIRED
);
$cgi
->
param
(
'Bugzilla_login'
,
$bugzilla_login
);
$cgi
->
param
(
'Bugzilla_login'
,
$bugzilla_login
);
...
...
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