uuid consists of lowercase letters

semantics-font
Svein-Tore Griff With 2015-03-22 12:42:07 +01:00
parent 3da0de4626
commit b79a5b61b8
1 changed files with 2 additions and 2 deletions

View File

@ -2736,7 +2736,7 @@ class H5PContentValidator {
$validkeys = array_merge($validkeys, $semantics->extraAttributes);
}
$this->filterParams($value, $validkeys);
if (isset($value->uuid) && ! preg_match('/^\{?[A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12}\}?$/', $value->uuid)) {
if (isset($value->uuid) && ! preg_match('/^\{?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}\}?$/', $value->uuid)) {
unset($value->uuid);
}