diff options
Diffstat (limited to 'includes/node.inc')
-rw-r--r-- | includes/node.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/node.inc b/includes/node.inc index e3c04db98..a020cb724 100644 --- a/includes/node.inc +++ b/includes/node.inc @@ -170,7 +170,9 @@ function node_save($node, $filter) { foreach ($node as $key => $value) { if (in_array($key, $fields)) { $k[] = check_query($key); - $v[] = "'". check_query($value) ."'"; + $v[] = "'". check_input($value) ."'"; + // NOTE: for the values we use 'check_input()' such that we apply + // the filters } } @@ -192,7 +194,9 @@ function node_save($node, $filter) { // prepare the query: foreach ($node as $key => $value) { if (in_array($key, $fields)) { - $q[] = check_query($key) ." = '". check_query($value) ."'"; + $q[] = check_query($key) ." = '". check_input($value) ."'"; + // NOTE: for the values we use 'check_input()' such that we apply + // the filters } } |