Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2698284
D25188.1734996528.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
545 B
Referenced Files
None
Subscribers
None
D25188.1734996528.diff
View Options
diff --git a/src/applications/console/controller/DarkConsoleController.php b/src/applications/console/controller/DarkConsoleController.php
--- a/src/applications/console/controller/DarkConsoleController.php
+++ b/src/applications/console/controller/DarkConsoleController.php
@@ -26,7 +26,7 @@
}
$visible = $request->getStr('visible');
- if (strlen($visible)) {
+ if (phutil_nonempty_string($visible)) {
$this->writeDarkConsoleSetting(
PhabricatorDarkConsoleVisibleSetting::SETTINGKEY,
(int)$visible);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 23:28 (18 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1027424
Default Alt Text
D25188.1734996528.diff (545 B)
Attached To
Mode
D25188: Fix PHP 8.1 "strlen(null)" exception when DarkConsole is enabled
Attached
Detach File
Event Timeline
Log In to Comment