Whitelisted originalImage attribute when filtering params.

HFJ-1645
pull/17/head
Thomas Marstrander 2016-03-06 11:42:24 +01:00
parent bfcf4228db
commit 54ca645e2c
1 changed files with 1 additions and 1 deletions

View File

@ -2906,7 +2906,7 @@ class H5PContentValidator {
// Remove attributes that should not exist, they may contain JSON escape // Remove attributes that should not exist, they may contain JSON escape
// code. // code.
$validkeys = array_merge(array('path', 'mime', 'copyright'), $typevalidkeys); $validkeys = array_merge(array('path', 'mime', 'copyright', 'originalImage'), $typevalidkeys);
if (isset($semantics->extraAttributes)) { if (isset($semantics->extraAttributes)) {
$validkeys = array_merge($validkeys, $semantics->extraAttributes); // TODO: Validate extraAttributes $validkeys = array_merge($validkeys, $semantics->extraAttributes); // TODO: Validate extraAttributes
} }