mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
session_regenerate_id() still fails with PHP 7.0.3
fix indentation
This commit is contained in:
parent
0909717c37
commit
08fe998dd1
1 changed files with 4 additions and 4 deletions
|
@ -948,10 +948,10 @@ function log_user($user_id, $remember_me)
|
|||
if ( session_id()!="" )
|
||||
{ // we regenerate the session for security reasons
|
||||
// see http://www.acros.si/papers/session_fixation.pdf
|
||||
if ((version_compare(PHP_VERSION, '7') <= 0 or version_compare(PHP_VERSION, '7.0.3') >= 0))
|
||||
{
|
||||
session_regenerate_id(true);
|
||||
}
|
||||
if (version_compare(PHP_VERSION, '7') <= 0)
|
||||
{
|
||||
session_regenerate_id(true);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue