Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2682355
D25204.1734655439.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
724 B
Referenced Files
None
Subscribers
None
D25204.1734655439.diff
View Options
diff --git a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
--- a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
+++ b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
@@ -1137,7 +1137,8 @@
$viewer = $this->requireViewer();
$query_key = $request->getValue('queryKey');
- if (!strlen($query_key)) {
+ $is_empty_query_key = phutil_string_cast($query_key) === '';
+ if ($is_empty_query_key) {
$saved_query = new PhabricatorSavedQuery();
} else if ($this->isBuiltinQuery($query_key)) {
$saved_query = $this->buildSavedQueryFromBuiltin($query_key);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 00:43 (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016287
Default Alt Text
D25204.1734655439.diff (724 B)
Attached To
Mode
D25204: Fix PHP 8.1 "strlen(null)" exception which can block repository imports
Attached
Detach File
Event Timeline
Log In to Comment