Page MenuHomePhorge

D25227.1737858796.diff
No OneTemporary

D25227.1737858796.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
@@ -104,7 +104,7 @@
private function tokenizeQuery($query) {
$maximum_bytes = 1024;
- $query_bytes = strlen($query);
+ $query_bytes = phutil_nonempty_string($query);
if ($query_bytes > $maximum_bytes) {
throw new PhutilSearchQueryCompilerSyntaxException(
pht(

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 26, 02:33 (5 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1149281
Default Alt Text
D25227.1737858796.diff (577 B)

Event Timeline