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

require_once ... restore_includes.php outputs a space, which breaks redirects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: Backup
    • Labels:

      Description

      The test script

      require_once('config.php');
      echo 'x';
      require_once($CFG->dirroot . '/backup/util/includes/restore_includes.php');
      echo 'x';

      will output two xs with a space between them. This space makes calls to redirect not work nicely, for example, when you click the restore link on a Restore link on backup/restorefile.php you see a "This page should redirect" message flash up.

      I am afraid I have not managed to pin the problem down any more accurately than that.

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            timhunt Tim Hunt
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Eloy Lafuente (stronk7)
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              1/Jul/11