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

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            abdy Abdy Franco
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              5/Jan/24

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 14 minutes
              14m

                Agile