Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-12879

RSS feeds block title corrupted when URL included

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 1.8.3
    • Blocks, RSS
    • None
    • MOODLE_18_STABLE

      Since upgrading to 1.8.3, many of our RSS feed blocks now have corrupted titles. The problem did not occur in 1.8.2.

      An example screenshot is attached. This is a simple link to 'The Economist' news feed, where the 'title' field has been left blank when configuring the block. Judging by the source code, Moodle is inserting the URL of The Economist website into places where it doesn't belong, such as in the ALT text, and in the arguments of the JavaScript function elementToggleHide().

      The code on line 262 of blocks/moodleblock.class.php is a starting point for the problem. The problem seems to be that $this->title already contains the hyperlink by the time it is used to form the ALT tag etc.; but I'm not clear as to where $this->title is defined, or what would be the consequences of changing it.

      Hopefully someone with better understanding of this class can help?

            poltawski Dan Poltawski
            daveyboond Steve Bond
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.