mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Guard e_session::setDefaultSystemConfig() to dedent function
This commit is contained in:
@@ -194,8 +194,8 @@ class e_session
|
|||||||
*/
|
*/
|
||||||
public function setDefaultSystemConfig()
|
public function setDefaultSystemConfig()
|
||||||
{
|
{
|
||||||
if(!$this->getSessionId())
|
if ($this->getSessionId()) return $this;
|
||||||
{
|
|
||||||
$config = array(
|
$config = array(
|
||||||
'ValidateRemoteAddr' => (e_SECURITY_LEVEL >= self::SECURITY_LEVEL_BALANCED),
|
'ValidateRemoteAddr' => (e_SECURITY_LEVEL >= self::SECURITY_LEVEL_BALANCED),
|
||||||
'ValidateHttpVia' => (e_SECURITY_LEVEL >= self::SECURITY_LEVEL_HIGH),
|
'ValidateHttpVia' => (e_SECURITY_LEVEL >= self::SECURITY_LEVEL_HIGH),
|
||||||
@@ -244,7 +244,6 @@ class e_session
|
|||||||
|
|
||||||
$this->setConfig($config)
|
$this->setConfig($config)
|
||||||
->setOptions($options);
|
->setOptions($options);
|
||||||
}
|
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user