summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-11-18 13:21:35 +0000
committerDries Buytaert <dries@buytaert.net>2001-11-18 13:21:35 +0000
commite7e104e82f3def8136c91337a19ce0cc3e451f64 (patch)
tree569430b15c270e8d819a3f580c1f2c6cefac448f /includes
parent0222ee66667fcfb212b698c0a51a32993868e6bc (diff)
downloadbrdo-e7e104e82f3def8136c91337a19ce0cc3e451f64.tar.gz
brdo-e7e104e82f3def8136c91337a19ce0cc3e451f64.tar.bz2
- node system:
+ Made the filters work again! + There is one strange thing that I can't track down though: for some reason, "^M" characters (?) are padded after newline ("\n" and / or "\r") characters.
Diffstat (limited to 'includes')
-rw-r--r--includes/node.inc8
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
}
}