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

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.9, 2.0
    • None
    • Block: Mrbs
    • None
    • 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

            aborrow Anthony Borrow
            aborrow Anthony Borrow
            Davo Smith
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: