Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2881282
D25227.1737097353.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
568 B
Referenced Files
None
Subscribers
None
D25227.1737097353.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25227: Fix PHP 8.1 "strlen(null)" exception which blocks rendering "Browse Dashboards" dialog
Attached
Detach File
Event Timeline
Log In to Comment