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
b712a735
Commit
b712a735
authored
May 23, 2007
by
ghendricks%novell.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 380928 â Bugzilla::Auth::Verify::create_or_update_user can return stale Bugzilla::User object
patch by vrb@novell.com r=mkanat a=mkanat
parent
550e990b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
.project
.project
+17
-0
Verify.pm
Bugzilla/Auth/Verify.pm
+3
-4
No files found.
.project
0 → 100644
View file @
b712a735
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
bmo-tip
</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>
org.epic.perleditor.perlbuilder
</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>
org.epic.perleditor.perlnature
</nature>
</natures>
</projectDescription>
Bugzilla/Auth/Verify.pm
View file @
b712a735
...
...
@@ -116,16 +116,15 @@ sub create_or_update_user {
validate_email_syntax
(
$username
)
||
return
{
failure
=>
AUTH_ERROR
,
error
=>
'auth_invalid_email'
,
details
=>
{
addr
=>
$username
}
};
$dbh
->
do
(
'UPDATE profiles SET login_name = ? WHERE userid = ?'
,
undef
,
$username
,
$user
->
id
);
$user
->
set_login
(
$username
);
}
if
(
$real_name
&&
$user
->
name
ne
$real_name
)
{
# $real_name is more than likely tainted, but we only use it
# in a placeholder and we never use it after this.
trick_taint
(
$real_name
);
$dbh
->
do
(
'UPDATE profiles SET realname = ? WHERE userid = ?'
,
undef
,
$real_name
,
$user
->
id
);
$user
->
set_name
(
$real_name
);
}
$user
->
update
();
return
{
user
=>
$user
};
}
...
...
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