Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/storage/PhabricatorAuthChallenge.php
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | final class PhabricatorAuthChallenge | ||||
} | } | ||||
public static function newChallengeResponsesFromRequest( | public static function newChallengeResponsesFromRequest( | ||||
array $challenges, | array $challenges, | ||||
AphrontRequest $request) { | AphrontRequest $request) { | ||||
assert_instances_of($challenges, __CLASS__); | assert_instances_of($challenges, __CLASS__); | ||||
$token_list = $request->getStr(self::HTTPKEY); | $token_list = $request->getStr(self::HTTPKEY); | ||||
if ($token_list === null) { | |||||
return; | |||||
} | |||||
$token_list = explode(' ', $token_list); | $token_list = explode(' ', $token_list); | ||||
$token_map = array(); | $token_map = array(); | ||||
foreach ($token_list as $token_element) { | foreach ($token_list as $token_element) { | ||||
$token_element = trim($token_element, ' '); | $token_element = trim($token_element, ' '); | ||||
if (!strlen($token_element)) { | if (!strlen($token_element)) { | ||||
continue; | continue; | ||||
▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines |