Page MenuHomeIn-Portal Phabricator

D308.id.diff
No OneTemporary

File Metadata

Created
Mon, Jan 6, 1:39 AM

D308.id.diff

Index: branches/5.2.x/core/kernel/session/session.php
===================================================================
--- branches/5.2.x/core/kernel/session/session.php
+++ branches/5.2.x/core/kernel/session/session.php
@@ -709,7 +709,7 @@
$result = false;
switch ($this->Mode) {
case self::smAUTO:
- if (!$this->CookiesEnabled) {
+ if ( !$this->CookiesEnabled && PHP_SAPI !== 'cli' ) {
$result = true;
}
break;
@@ -719,7 +719,9 @@
case self::smGET_ONLY:
case self::smCOOKIES_AND_GET:
- $result = true;
+ if ( PHP_SAPI !== 'cli' ) {
+ $result = true;
+ }
break;
}

Event Timeline