Fix an issue where email is overquoted when attaching objects
Summary: Currently, if you attach a revision to a task and the revision has a title with quotes or angle brackets in it, they are over-escaped in the email. Instead, don't do that. Test Plan: Attached `"QUOTES" MATH: 1 < 2` to a task, got a reasonable looking email. Reviewers: btrahan, chad Reviewed By: chad CC: aran Differential Revision: https://secure.phabricator.com/D7186
This commit is contained in:
@@ -190,7 +190,7 @@ abstract class PhabricatorApplicationTransaction
|
||||
if ($this->renderingTarget == self::TARGET_HTML) {
|
||||
return $this->getHandle($phid)->renderLink();
|
||||
} else {
|
||||
return hsprintf('%s', $this->getHandle($phid)->getLinkName());
|
||||
return $this->getHandle($phid)->getLinkName();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -199,7 +199,11 @@ abstract class PhabricatorApplicationTransaction
|
||||
foreach ($phids as $phid) {
|
||||
$links[] = $this->renderHandleLink($phid);
|
||||
}
|
||||
return phutil_implode_html(', ', $links);
|
||||
if ($this->renderingTarget == self::TARGET_HTML) {
|
||||
return phutil_implode_html(', ', $links);
|
||||
} else {
|
||||
return implode(', ', $links);
|
||||
}
|
||||
}
|
||||
|
||||
public function renderPolicyName($phid) {
|
||||
|
||||
Reference in New Issue
Block a user