From 85d2e2eb75b48c75736bc6a67e5688971ff4a63f Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Tue, 23 Oct 2018 10:56:44 +0200 Subject: [PATCH] Don't filter params if library or params is not set --- h5p.classes.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/h5p.classes.php b/h5p.classes.php index 3ab11db..4e53fa3 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2000,6 +2000,10 @@ class H5PCore { return $content['filtered']; } + if (!(isset($content['library']) && isset($content['params']))) { + return NULL; + } + // Validate and filter against main library semantics. $validator = new H5PContentValidator($this->h5pF, $this); $params = (object) array(