Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2595499
D25835.1730387667.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
1 KB
Referenced Files
None
Subscribers
None
D25835.1730387667.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
@@ -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
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 31, 15:14 (21 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
954141
Default Alt Text
D25835.1730387667.diff (1 KB)
Attached To
Mode
D25835: Strip surrounding whitespace from project and task titles
Attached
Detach File
Event Timeline
Log In to Comment