Commit 8bd034d9 authored by Volker Krause's avatar Volker Krause
Browse files

Sanity check non-scalar input data better

parent e74cafa1
......@@ -195,6 +195,8 @@ class Sample
$stmt = $db->prepare($sql);
foreach ($data as $key => $entry) {
if (!is_object($entry))
continue;
$bindValues = array(':sampleId' => $sampleId);
if ($schemaEntry->type == SchemaEntry::MAP_TYPE) {
if (!is_string($key) || strlen($key) == 0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment