1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

Fix another missing strlen for users with username "0".

This commit is contained in:
epriestley 2012-09-13 17:00:53 -07:00
parent 0e672e2435
commit b77b4f7155

View file

@ -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