Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2689588
D25759.1734736598.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
891 B
Referenced Files
None
Subscribers
None
D25759.1734736598.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 must be less than %d characters.',
+ $this->maximumTaskTitleLength + 1),
+ $xaction);
+ continue;
+ }
}
if (!$errors) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 23:16 (17 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1021331
Default Alt Text
D25759.1734736598.diff (891 B)
Attached To
Mode
D25759: Restrict maximum task title length to 255 characters
Attached
Detach File
Event Timeline
Log In to Comment