Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2680498
D25380.1734558690.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
652 B
Referenced Files
None
Subscribers
None
D25380.1734558690.diff
View Options
diff --git a/src/applications/search/controller/PhabricatorSearchController.php b/src/applications/search/controller/PhabricatorSearchController.php
--- a/src/applications/search/controller/PhabricatorSearchController.php
+++ b/src/applications/search/controller/PhabricatorSearchController.php
@@ -13,7 +13,7 @@
$viewer = $this->getViewer();
$query = $request->getStr('query');
- if ($request->getStr('jump') != 'no' && strlen($query)) {
+ if ($request->getStr('jump') != 'no' && phutil_nonempty_string($query)) {
$jump_uri = id(new PhabricatorDatasourceEngine())
->setViewer($viewer)
->newJumpURI($query);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 18, 21:51 (2 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1014929
Default Alt Text
D25380.1734558690.diff (652 B)
Attached To
Mode
D25380: Fix PHP 8.1/8.2 "strlen(null)" exception in SearchController
Attached
Detach File
Event Timeline
Log In to Comment