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

        There are no comments yet on this issue.

          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