mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-29401 fix forgotten area
Thanks Eloy!
This commit is contained in:
parent
aff24313be
commit
65e9eac0d1
@ -859,7 +859,7 @@ class file_storage {
|
||||
throw new file_exception('storedfileproblem', 'Invalid component');
|
||||
}
|
||||
|
||||
$file_record->filearea = clean_param($file_record->filearea, PARAM_ALPHAEXT);
|
||||
$file_record->filearea = clean_param($file_record->filearea, PARAM_AREA);
|
||||
if (empty($file_record->filearea)) {
|
||||
throw new file_exception('storedfileproblem', 'Invalid filearea');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user