Merge branch 'MDL-57569-33' of git://github.com/sarjona/moodle into MOODLE_33_STABLE
This commit is contained in:
+1
-1
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user