Page MenuHomePhorge

D25204.1734655439.diff
No OneTemporary

D25204.1734655439.diff

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

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)

Event Timeline