Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15522783
D8140.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8140.diff
View Options
Index: src/applications/tokens/feed/PhabricatorTokenGivenFeedStory.php
===================================================================
--- src/applications/tokens/feed/PhabricatorTokenGivenFeedStory.php
+++ src/applications/tokens/feed/PhabricatorTokenGivenFeedStory.php
@@ -44,7 +44,11 @@
public function renderText() {
// 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())));
}
}
Index: src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php
===================================================================
--- src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php
+++ src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php
@@ -66,7 +66,11 @@
public function renderText() {
// 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())));
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 21, 9:25 PM (3 d, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7717202
Default Alt Text
D8140.diff (1 KB)
Attached To
Mode
D8140: Wrap the feed text rendering stuff with `htmlspecialchars_decode`
Attached
Detach File
Event Timeline
Log In to Comment