Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2871612
D25519.1736868576.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
649 B
Referenced Files
None
Subscribers
None
D25519.1736868576.diff
View Options
diff --git a/src/applications/search/field/PhabricatorSearchTextField.php b/src/applications/search/field/PhabricatorSearchTextField.php
--- a/src/applications/search/field/PhabricatorSearchTextField.php
+++ b/src/applications/search/field/PhabricatorSearchTextField.php
@@ -11,6 +11,15 @@
return $request->getStr($key);
}
+ protected function validateControlValue($value) {
+ if (!is_array($value)) {
+ return;
+ }
+ $this->addError(
+ pht('Invalid'),
+ pht('Text value for "%s" can not be parsed.', $this->getLabel()));
+ }
+
protected function newControl() {
return new AphrontFormTextControl();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 14, 15:29 (3 d, 12 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114253
Default Alt Text
D25519.1736868576.diff (649 B)
Attached To
Mode
D25519: Validate PhabricatorSearchTextField value not to be an array
Attached
Detach File
Event Timeline
Log In to Comment