Merge branch 'MDL-77054-master' of https://github.com/jleyva/moodle

This commit is contained in:
Andrew Nicols
2024-01-18 09:43:54 +08:00
+3
View File
@@ -31,6 +31,9 @@ define('NO_DEBUG_DISPLAY', true);
require_once('config.php');
// Allow CORS requests.
header('Access-Control-Allow-Origin: *');
$relativepath = get_file_argument();
$token = optional_param('token', '', PARAM_ALPHANUM);
if (0 == strpos($relativepath, '/token/')) {