From b77b4f715561bd36fa07011c152a68f8f5b43cca Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 13 Sep 2012 17:00:53 -0700 Subject: [PATCH] Fix another missing strlen for users with username "0". --- src/applications/base/controller/PhabricatorController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/base/controller/PhabricatorController.php b/src/applications/base/controller/PhabricatorController.php index 3c9991483f..b0771af094 100644 --- a/src/applications/base/controller/PhabricatorController.php +++ b/src/applications/base/controller/PhabricatorController.php @@ -48,7 +48,7 @@ abstract class PhabricatorController extends AphrontController { $phusr = $request->getCookie('phusr'); $phsid = $request->getCookie('phsid'); - if ($phusr && $phsid) { + if (strlen($phusr) && $phsid) { $info = queryfx_one( $user->establishConnection('r'), 'SELECT u.* FROM %T u JOIN %T s ON u.phid = s.userPHID