Page MenuHomePhabricator

Don't render HTML for "user answered question" transaction if the rendering target is not HTML
ClosedPublic

Authored by hach-que on Aug 21 2014, 10:14 AM.
Tags
None
Referenced Files
F14061240: D10319.diff
Mon, Nov 18, 5:43 AM
F14050865: D10319.diff
Thu, Nov 14, 9:04 PM
F14033753: D10319.diff
Sat, Nov 9, 7:50 PM
F14019018: D10319.diff
Tue, Nov 5, 8:57 PM
F13994099: D10319.id24943.diff
Wed, Oct 23, 3:47 AM
F13969246: D10319.id24943.diff
Oct 17 2024, 1:24 AM
F13969244: D10319.id24840.diff
Oct 17 2024, 1:24 AM
F13969184: D10319.diff
Oct 17 2024, 12:59 AM
Subscribers

Details

Summary

Resolves T5817. Continuation of D10231.

This corrects the rendering of the "user answered question" transaction so that it does not incorrectly attempt to render the question handle as HTML in emails if the rendering target is not HTML.

Test Plan

Used bin/mail show-outbound to verify that the email didn't contain escaped HTML when answering a question.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

hach-que retitled this revision from to Don't render HTML for "user answered question" transaction if the rendering target is not HTML.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
hach-que added a reviewer: epriestley.
epriestley edited edge metadata.

Just use $this->renderHandleLink($object_phid) -- if that does something sketchy, adjust the PHIDType to produce a better handle name (like D10231).

This revision now requires changes to proceed.Aug 21 2014, 11:21 AM
hach-que edited edge metadata.

This gives the same result for text emails, but doesn't link for HTML emails (but the answer link is at the bottom of the HTML email anyway)

Should I land this? It still has the "Needs Review" status.

epriestley edited edge metadata.
This revision is now accepted and ready to land.Aug 26 2014, 4:01 PM
hach-que updated this revision to Diff 24943.

Closed by commit rP0988ddbf2f4c (authored by @hach-que).