Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2688617
D25759.1734724766.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
883 B
Referenced Files
None
Subscribers
None
D25759.1734724766.diff
View Options
diff --git a/src/applications/maniphest/xaction/ManiphestTaskTitleTransaction.php b/src/applications/maniphest/xaction/ManiphestTaskTitleTransaction.php
--- a/src/applications/maniphest/xaction/ManiphestTaskTitleTransaction.php
+++ b/src/applications/maniphest/xaction/ManiphestTaskTitleTransaction.php
@@ -4,6 +4,7 @@
extends ManiphestTaskTransactionType {
const TRANSACTIONTYPE = 'title';
+ private $maximumTaskTitleLength = 255;
public function generateOldValue($object) {
return $object->getTitle();
@@ -78,6 +79,13 @@
$xaction);
continue;
}
+ if (mb_strlen($new) > $this->maximumTaskTitleLength) {
+ $errors[] = $this->newInvalidError(
+ pht('Task title cannot exceed %d characters.',
+ $this->maximumTaskTitleLength),
+ $xaction);
+ continue;
+ }
}
if (!$errors) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 19:59 (13 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1018695
Default Alt Text
D25759.1734724766.diff (883 B)
Attached To
Mode
D25759: Restrict maximum task title length to 255 characters
Attached
Detach File
Event Timeline
Log In to Comment