MDL-69712 core_h5p: Remove 'whitelist' key uses

This commit is contained in:
Amaia Anabitarte 2020-09-30 18:25:29 +02:00
parent 87afa4d759
commit 46b9e12a27
2 changed files with 2 additions and 2 deletions

View File

@ -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),

View File

@ -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.