Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17458 Install & upgrade 2.0 cleanup META
  3. MDL-12307

A trailing backslash on the moodle data directory entry during configuration creates a bad config.php file

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.2
    • 2.0
    • Administration
    • None
    • This is in a moodle 1.8.2 checkout
    • Any
    • MOODLE_18_STABLE
    • MOODLE_20_STABLE

    Description

      During the configuration process, if one enters a moodle data directory with a trailing backslash, this writes a bad config.php file and generates, to the user, a confusing error message. The trailing backslash escapes the closing single quote in php, which happens to be the last single quote, and php considers the file to end prematurely, etc.

      Need to filter the entries in the configuration process...

      Attachments

        Activity

          People

            skodak Petr Skoda
            xtitter Nathaniel Titterton
            Nobody Nobody
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Nov/10