mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 21:40:55 +01:00
Fix another missing strlen for users with username "0".
This commit is contained in:
parent
0e672e2435
commit
b77b4f7155
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue