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 @@ -79,6 +79,7 @@ $xaction); continue; } + $xaction->setNewValue(trim($new)); // Strip surrounding whitespace if (mb_strlen($new) > $this->maximumTaskTitleLength) { $errors[] = $this->newInvalidError( pht('Task title cannot exceed %d characters.', diff --git a/src/applications/project/xaction/PhabricatorProjectNameTransaction.php b/src/applications/project/xaction/PhabricatorProjectNameTransaction.php --- a/src/applications/project/xaction/PhabricatorProjectNameTransaction.php +++ b/src/applications/project/xaction/PhabricatorProjectNameTransaction.php @@ -79,6 +79,7 @@ 'Project names must not be longer than %s character(s).', new PhutilNumber($max_length))); } + $xaction->setNewValue(trim($new_value)); // Strip surrounding whitespace } if ($this->getEditor()->getIsMilestone() || !$xactions) {