Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18702371
D20429.id48763.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
671 B
Referenced Files
None
Subscribers
None
D20429.id48763.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
@@ -1142,6 +1142,12 @@
}
$constraints = $request->getValue('constraints', array());
+ if (!is_array($constraints)) {
+ throw new Exception(
+ pht(
+ 'Parameter "constraints" must be a map of constraints, got "%s".',
+ phutil_describe_type($constraints)));
+ }
$fields = $this->getSearchFieldsForConduit();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sep 28 2025, 11:51 PM (8 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8892701
Default Alt Text
D20429.id48763.diff (671 B)
Attached To
Mode
D20429: When an invalid "constraints" parameter is provided to a "*.search" method, raise a more tailored error
Attached
Detach File
Event Timeline
Log In to Comment