From 463681357ff71afdd4748fca0fa3eba30aacb043 Mon Sep 17 00:00:00 2001 From: Stephen Bourget Date: Fri, 15 Jul 2016 16:20:32 -0400 Subject: [PATCH] MDL-55252 mod_chat: prevent direct script access to lib files. --- mod/chat/lib.php | 2 ++ mod/chat/locallib.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mod/chat/lib.php b/mod/chat/lib.php index 3c5d57a..5fde3dc 100644 --- a/mod/chat/lib.php +++ b/mod/chat/lib.php @@ -22,6 +22,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); + require_once($CFG->dirroot.'/calendar/lib.php'); // The HTML head for the message window to start with ( is used to get some browsers starting with output. diff --git a/mod/chat/locallib.php b/mod/chat/locallib.php index 21dd977..98e1ab0 100644 --- a/mod/chat/locallib.php +++ b/mod/chat/locallib.php @@ -18,6 +18,8 @@ * Library of functions for chat outside of the core api */ +defined('MOODLE_INTERNAL') || die(); + require_once($CFG->dirroot . '/mod/chat/lib.php'); require_once($CFG->libdir . '/portfolio/caller.php');