Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3493914
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3493914
Commits
51306893
Commit
51306893
authored
18 years ago
by
Steven Wittens
Browse files
Options
Downloads
Patches
Plain Diff
- sa-2006-003: Session fixation issue
parent
8b12ba7d
No related branches found
Branches containing commit
Tags
2.0.0-beta1
8.x-2.0-beta1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/user.module
+6
-0
6 additions, 0 deletions
modules/user.module
with
6 additions
and
0 deletions
modules/user.module
+
6
−
0
View file @
51306893
...
...
@@ -792,6 +792,12 @@ function user_login($edit = array(), $msg = '') {
user_module_invoke
(
'login'
,
$edit
,
$user
);
if
(
function_exists
(
'session_regenerate_id'
))
{
$old_session_id
=
session_id
();
session_regenerate_id
();
db_query
(
"UPDATE
{
sessions
}
SET sid = '%s' WHERE sid = '%s'"
,
session_id
(),
$old_session_id
);
}
// Redirect the user to the page he logged on from.
drupal_goto
(
$edit
[
'destination'
]);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment