MDL-29401 fix forgotten area

Thanks Eloy!
This commit is contained in:
Petr Skoda 2011-09-26 02:16:31 +02:00
parent aff24313be
commit 65e9eac0d1

View File

@ -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');
}