Page MenuHomePhorge

D25227.1737097353.diff
No OneTemporary

D25227.1737097353.diff

diff --git a/src/applications/search/compiler/PhutilSearchQueryCompiler.php b/src/applications/search/compiler/PhutilSearchQueryCompiler.php
--- a/src/applications/search/compiler/PhutilSearchQueryCompiler.php
+++ b/src/applications/search/compiler/PhutilSearchQueryCompiler.php
@@ -103,7 +103,9 @@
private function tokenizeQuery($query) {
$maximum_bytes = 1024;
-
+ if ($query === null) {
+ $query = '';
+ }
$query_bytes = strlen($query);
if ($query_bytes > $maximum_bytes) {
throw new PhutilSearchQueryCompilerSyntaxException(

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 17, 07:02 (1 d, 11 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1119658
Default Alt Text
D25227.1737097353.diff (568 B)

Event Timeline