From 1548ebaf94411aa97e3c4ea8dbe376c1468807d2 Mon Sep 17 00:00:00 2001 From: Frank Ronny Larsen Date: Mon, 8 Jul 2013 18:22:38 +0200 Subject: [PATCH] OPPG-172: Added library whitelist extension Adds js and css as allowed extensions for library. Manually add swf if wanted. --- h5p.classes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/h5p.classes.php b/h5p.classes.php index 54677d3..5f4a663 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -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; }