Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.9.0-b2
-
Fix Version/s: 5.9.0-b2
-
Component/s: None
-
Labels:None
Description
When inserting a data feed for a package descriptions, the HTML code gets printed instead of being rendered. We should remove htmlentities() from the description endpoint for packages.
/core/Util/DataFeed/Feeds/PackageFeed.php, Line 192:
return htmlentities(
($vars['format'] == 'text')
? nl2br($descriptions[$vars['lang']]->{$vars['format']} ?? $package->description)
: ($descriptions[$vars['lang']]->{$vars['format']} ?? $package->description_html)
);
Change to:
return ($vars['format'] == 'text')
? nl2br($descriptions[$vars['lang']]->{$vars['format']} ?? $package->description)
: ($descriptions[$vars['lang']]->{$vars['format']} ?? $package->description_html);
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 5.9.0-b2 [ 11906 ] |
| Security | Private [ 10000 ] |
| Rank | Ranked higher |
| Sprint | 5.10.0 Sprint 3 [ 190 ] |
| Rank | Ranked higher |
| Assignee | Abdy Franco [ abdy ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Remaining Estimate | 0 minutes [ 0 ] | |
| Time Spent | 14 minutes [ 840 ] | |
| Worklog Id | 16748 [ 16748 ] |
| Status | In Progress [ 3 ] | In Review [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Status | In Review [ 5 ] | Closed [ 6 ] |