OPPG-172: Added library whitelist extension

Adds js and css as allowed extensions for library.
Manually add swf if wanted.
namespaces
Frank Ronny Larsen 2013-07-08 18:22:38 +02:00
parent 112e1e1108
commit 1548ebaf94
1 changed files with 2 additions and 0 deletions

View File

@ -491,6 +491,8 @@ class H5PValidator {
$validLibrary = $this->isValidH5pData($h5pData, $file, $this->libraryRequired, $this->libraryOptional); $validLibrary = $this->isValidH5pData($h5pData, $file, $this->libraryRequired, $this->libraryOptional);
$validLibrary = $this->h5pF->validateContentFiles($filePath, TRUE) && $validLibrary;
if (isset($h5pData['preloadedJs'])) { if (isset($h5pData['preloadedJs'])) {
$validLibrary = $this->isExistingFiles($h5pData['preloadedJs'], $tmpDir, $file) && $validLibrary; $validLibrary = $this->isExistingFiles($h5pData['preloadedJs'], $tmpDir, $file) && $validLibrary;
} }