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

blocklib strips leading / from edit URL, causing a coding exception when it's passed to set_url().

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Blocks
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      When a block configuration block is clicked, it passes the URL through to blocklib.php.
      Here, the URL is processed and passed to moodle_page::set_url(), which expects an absolute URL or a URL with a leading slash. However, the processing strips off the leading slash, causing an exception to be thrown.
      This prevents configuration of any blocks.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            marxjohnson Mark Johnson
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10