Merge branch 'MDL-57569-33' of git://github.com/sarjona/moodle into MOODLE_33_STABLE

This commit is contained in:
Jun Pataleta
2017-11-27 19:44:07 +13:00
+1 -1
View File
@@ -4032,7 +4032,7 @@ function file_pluginfile($relativepath, $forcedownload, $preview = null, $offlin
$filename = array_pop($args);
if ($filearea === 'badgeimage') {
if ($filename !== 'f1' && $filename !== 'f2') {
if ($filename !== 'f1' && $filename !== 'f2' && $filename !== 'f3') {
send_file_not_found();
}
if (!$file = $fs->get_file($context->id, 'badges', 'badgeimage', $badge->id, '/', $filename.'.png')) {