mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-30 21:52:00 +01:00
session_regenerate_id() still fails with PHP 7.0.3
fix indentation
This commit is contained in:
1 parent
0909717c37
commit
08fe998dd1
1 file changed
+4
-4
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user