mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-69712 core_h5p: Remove 'whitelist' key uses
This commit is contained in:
parent
87afa4d759
commit
46b9e12a27
@ -126,7 +126,7 @@ class external extends external_api {
|
||||
if (!empty($messages->error)) {
|
||||
foreach ($messages->error as $error) {
|
||||
// We have to apply clean_param because warningcode is a PARAM_ALPHANUM.
|
||||
// And H5P has some error code like 'not-in-whitelist'.
|
||||
// And H5P has some error code like 'total-size-too-large'.
|
||||
$warnings[] = [
|
||||
'item' => $url,
|
||||
'warningcode' => clean_param($error->code, PARAM_ALPHANUM),
|
||||
|
@ -568,7 +568,7 @@ class framework implements \H5PFrameworkInterface {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get file extension whitelist.
|
||||
* Get allowed file extension list.
|
||||
* Implements getWhitelist.
|
||||
*
|
||||
* The default extension list is part of h5p, but admins should be allowed to modify it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user