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
Abdy Franco
created issue -
Paul Phillips
made changes -
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 5.9.0-b2 [ 11906 ] |
Paul Phillips
made changes -
Security | Private [ 10000 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Sprint | 5.10.0 Sprint 3 [ 190 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Abdy Franco
made changes -
Assignee | Abdy Franco [ abdy ] |
Abdy Franco
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Abdy Franco
made changes -
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 14 minutes [ 840 ] | |
Worklog Id | 16748 [ 16748 ] |
Abdy Franco
made changes -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Jonathan Reissmueller
made changes -
Status | In Review [ 5 ] | Closed [ 6 ] |