Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4864297
D26061.1749393611.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
645 B
Referenced Files
None
Subscribers
None
D26061.1749393611.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
@@ -31,7 +31,7 @@
if ($request->getBool('search:primary')) {
// If there's no query, just take the user to advanced search.
- if (!strlen($query)) {
+ if (!phutil_nonempty_string($query)) {
$advanced_uri = '/search/query/advanced/';
return id(new AphrontRedirectResponse())->setURI($advanced_uri);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 8, 14:40 (15 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1772046
Default Alt Text
D26061.1749393611.diff (645 B)
Attached To
Mode
D26061: Fix PHP 8.1 "strlen(null)" exception for no query in primary search
Attached
Detach File
Event Timeline
Log In to Comment