Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorAuthStartController.php
Context not available. | |||||
$session_token = $request->getCookie(PhabricatorCookies::COOKIE_SESSION); | $session_token = $request->getCookie(PhabricatorCookies::COOKIE_SESSION); | ||||
$did_clear = $request->getStr('cleared'); | $did_clear = $request->getStr('cleared'); | ||||
if (strlen($session_token)) { | if (@strlen($session_token)) { | ||||
$kind = PhabricatorAuthSessionEngine::getSessionKindFromToken( | $kind = PhabricatorAuthSessionEngine::getSessionKindFromToken( | ||||
$session_token); | $session_token); | ||||
switch ($kind) { | switch ($kind) { | ||||
Context not available. | |||||
} | } | ||||
$next_uri = $request->getStr('next'); | $next_uri = $request->getStr('next'); | ||||
if (!strlen($next_uri)) { | if (!@strlen($next_uri)) { | ||||
if ($this->getDelegatingController()) { | if ($this->getDelegatingController()) { | ||||
// Only set a next URI from the request path if this controller was | // Only set a next URI from the request path if this controller was | ||||
// delegated to, which happens when a user tries to view a page which | // delegated to, which happens when a user tries to view a page which | ||||
Context not available. | |||||
} | } | ||||
if (!$request->isFormPost()) { | if (!$request->isFormPost()) { | ||||
if (strlen($next_uri)) { | if (@strlen($next_uri)) { | ||||
PhabricatorCookies::setNextURICookie($request, $next_uri); | PhabricatorCookies::setNextURICookie($request, $next_uri); | ||||
} | } | ||||
PhabricatorCookies::setClientIDCookie($request); | PhabricatorCookies::setClientIDCookie($request); | ||||
Context not available. | |||||
$via_header = AphrontRequest::getViaHeaderName(); | $via_header = AphrontRequest::getViaHeaderName(); | ||||
$via_uri = AphrontRequest::getHTTPHeader($via_header); | $via_uri = AphrontRequest::getHTTPHeader($via_header); | ||||
if (strlen($via_uri)) { | if (@strlen($via_uri)) { | ||||
PhabricatorCookies::setNextURICookie($request, $via_uri, $force = true); | PhabricatorCookies::setNextURICookie($request, $via_uri, $force = true); | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0