Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
417d543a
Commit
417d543a
authored
Nov 27, 2017
by
jun
Browse files
Merge branch 'MDL-57569-master' of
git://github.com/sarjona/moodle
parents
78a534dd
6820f36b
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/filelib.php
View file @
417d543a
...
...
@@ -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'
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment