Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
filedepot
Commits
6afbcde1
Commit
6afbcde1
authored
May 24, 2012
by
blainelang
Browse files
fix for security issue 71974 - user session switching
parent
54ff0e99
Changes
1
Hide whitespace changes
Inline
Side-by-side
filedepot.module
View file @
6afbcde1
...
...
@@ -440,7 +440,12 @@ function filedepot_user_access($perm) {
// We found the client's session record and they are an authenticated user
if
(
$user
&&
$user
->
uid
>
0
)
{
// This is done to unserialize the data member of $user and restore their session
// The user_load function was over-writing the SESSION record and allowing IE to hijack the session
// Issue was only seen when uploading files with FF and using IE on the same desktop
// Adding the session_save_session(FALSE) skips the updating of the session table
session_save_session
(
FALSE
);
// Reload the user object - this is done to unserialize the data member of $user and restore their session
$user
=
user_load
(
$user
->
uid
);
}
}
...
...
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