Skip to content

Commit b77b4f7

Browse files
author
epriestley
committed
Fix another missing strlen for users with username "0".
1 parent 0e672e2 commit b77b4f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/applications/base/controller/PhabricatorController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ final public function willBeginExecution() {
4848
$phusr = $request->getCookie('phusr');
4949
$phsid = $request->getCookie('phsid');
5050

51-
if ($phusr && $phsid) {
51+
if (strlen($phusr) && $phsid) {
5252
$info = queryfx_one(
5353
$user->establishConnection('r'),
5454
'SELECT u.* FROM %T u JOIN %T s ON u.phid = s.userPHID

0 commit comments

Comments
 (0)