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

Database activity missing Moodle internal test in some library files

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Manual Testing:

      1. Open the files and verify that they have been added
      2. Try to browse to the files using your favorite web browser and verify that nothing is displayed.
      Show
      Manual Testing: Open the files and verify that they have been added Try to browse to the files using your favorite web browser and verify that nothing is displayed.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE

      Description

      Most moodle internal scripts like lib.php and locallib.php usually begin with at test to prevent direct script access like:
      defined('MOODLE_INTERNAL') || die();

      That check is missing from the lib.php, locallib.php, and rsslib.php

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Sep/16