OPPG-172: Added library whitelist extension
Adds js and css as allowed extensions for library. Manually add swf if wanted.namespaces
parent
112e1e1108
commit
1548ebaf94
|
@ -491,6 +491,8 @@ class H5PValidator {
|
|||
|
||||
$validLibrary = $this->isValidH5pData($h5pData, $file, $this->libraryRequired, $this->libraryOptional);
|
||||
|
||||
$validLibrary = $this->h5pF->validateContentFiles($filePath, TRUE) && $validLibrary;
|
||||
|
||||
if (isset($h5pData['preloadedJs'])) {
|
||||
$validLibrary = $this->isExistingFiles($h5pData['preloadedJs'], $tmpDir, $file) && $validLibrary;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue