Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-2160

MRBS block: returl parameter not expected by edit_entry_handler.php may cause server 500 error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9, 2.0
    • Fix Version/s: None
    • Component/s: Block: Mrbs
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      edit_entry_handler uses the $returl variable; however, there is no optional or require param at the beginning of the file so it is undefined and seems to cause a server 500 error on some setups. I think the solution is to add:

      $returl = optional_param('returl',NULL, PARAM_LOCALURL);

      toward the beginning of the file and then all should work well.

      Thanks to Don Agahari for bringing this issue to my attention. Peace - Anthony

      p.s. affects both 1.9 and HEAD versions

        Attachments

          Activity

            People

            Assignee:
            aborrow Anthony Borrow
            Reporter:
            aborrow Anthony Borrow
            Participants:
            Component watchers:
            Davo Smith
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: