Page MenuHomePhorge

D25835.1730395544.diff
No OneTemporary

D25835.1730395544.diff

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) {

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 31, 17:25 (21 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
954141
Default Alt Text
D25835.1730395544.diff (1 KB)

Event Timeline