Commit 3b2484bb authored by Steven Wittens's avatar Steven Wittens

#11548: node.module - Ensure that only valid fields are saved

parent cad3135f
......@@ -433,7 +433,7 @@ function node_save($node) {
// Prepare the query:
foreach ($node as $key => $value) {
if (in_array($key, $fields)) {
if (in_array((string) $key, $fields)) {
$k[] = check_query($key);
$v[] = $value;
$s[] = "'%s'";
......
Markdown is supported
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