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

RSS feeds block title corrupted when URL included

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.8.3
    • Fix Version/s: None
    • Component/s: Blocks, RSS
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE

      Description

      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?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                poltawski Dan Poltawski
                Reporter:
                daveyboond Steve Bond
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: