mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Wrap the feed text rendering stuff with htmlspecialchars_decode
Summary: I've only seen this be an issue with PhabricatorBot. Test Plan: Comment on something with characters that are automatically converted like "<>", and see what the irc bot reports Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: epriestley, aran Differential Revision: https://secure.phabricator.com/D8140
This commit is contained in:
parent
30b9503b85
commit
d02b106dc6
2 changed files with 10 additions and 2 deletions
|
@ -44,7 +44,11 @@ final class PhabricatorTokenGivenFeedStory
|
||||||
|
|
||||||
public function renderText() {
|
public function renderText() {
|
||||||
// TODO: This is grotesque; the feed notification handler relies on it.
|
// TODO: This is grotesque; the feed notification handler relies on it.
|
||||||
return strip_tags(hsprintf('%s', $this->renderView()->render()));
|
return htmlspecialchars_decode(
|
||||||
|
strip_tags(
|
||||||
|
hsprintf(
|
||||||
|
'%s',
|
||||||
|
$this->renderView()->render())));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,11 @@ class PhabricatorApplicationTransactionFeedStory
|
||||||
|
|
||||||
public function renderText() {
|
public function renderText() {
|
||||||
// TODO: This is grotesque; the feed notification handler relies on it.
|
// TODO: This is grotesque; the feed notification handler relies on it.
|
||||||
return strip_tags(hsprintf('%s', $this->renderView()->render()));
|
return htmlspecialchars_decode(
|
||||||
|
strip_tags(
|
||||||
|
hsprintf(
|
||||||
|
'%s',
|
||||||
|
$this->renderView()->render())));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue