Skip to content

Commit

Permalink
Merge branch 'MDL-57569-34' of git://github.com/sarjona/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_34_STABLE
  • Loading branch information
junpataleta committed Nov 27, 2017
2 parents c950c91 + c12caea commit 6210465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filelib.php
Expand Up @@ -4088,7 +4088,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')) {
Expand Down

0 comments on commit 6210465

Please sign in to comment.