mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-21 14:22:41 +01:00
DarkConsole: Fix "strlen(null)" but for the "tab" query parameter
Summary: See rPf4d2811 Bug: T15344 Test Plan: Opened DarkConsole with /~/, saw no errors in DarkConsole Reviewers: O1 Blessed Committers, aklapper Reviewed By: O1 Blessed Committers, aklapper Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25834
This commit is contained in:
parent
74bf6c0e3c
commit
ddf26e89c8
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ final class DarkConsoleController extends PhabricatorController {
|
||||||
}
|
}
|
||||||
|
|
||||||
$tab = $request->getStr('tab');
|
$tab = $request->getStr('tab');
|
||||||
if (strlen($tab)) {
|
if (phutil_nonempty_string($tab)) {
|
||||||
$this->writeDarkConsoleSetting(
|
$this->writeDarkConsoleSetting(
|
||||||
PhabricatorDarkConsoleTabSetting::SETTINGKEY,
|
PhabricatorDarkConsoleTabSetting::SETTINGKEY,
|
||||||
$tab);
|
$tab);
|
||||||
|
|
Loading…
Reference in a new issue