diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-11-03 20:57:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-11-03 20:57:15 +0000 |
commit | 0fa133dd2df5d9a09bb40ae331513c9b94e2cf8e (patch) | |
tree | eaaf0c3060b11a76cda5c1ae832bc9fbccd5870a /modules | |
parent | 20285868241c5993a160f621af05af9d97840c2d (diff) | |
download | brdo-0fa133dd2df5d9a09bb40ae331513c9b94e2cf8e.tar.gz brdo-0fa133dd2df5d9a09bb40ae331513c9b94e2cf8e.tar.bz2 |
- Added missing filter. Patch by Marco.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/poll.module | 2 | ||||
-rw-r--r-- | modules/poll/poll.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/poll.module b/modules/poll.module index d2ac76cbe..3994a4f3b 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -146,7 +146,7 @@ function poll_insert($node) { for ($i = 0; $i < $node->choices; $i++) { if ($node->choice[$i] != "") { - db_query("INSERT INTO poll_choices (nid, chtext, chvotes, chorder) VALUES ('%d', '%s', '%d', '%d')", $node->nid, $node->choice[$i], $node->chvotes[$i], $i); + db_query("INSERT INTO poll_choices (nid, chtext, chvotes, chorder) VALUES ('%d', '%s', '%d', '%d')", $node->nid, filter($node->choice[$i]), $node->chvotes[$i], $i); } } } diff --git a/modules/poll/poll.module b/modules/poll/poll.module index d2ac76cbe..3994a4f3b 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -146,7 +146,7 @@ function poll_insert($node) { for ($i = 0; $i < $node->choices; $i++) { if ($node->choice[$i] != "") { - db_query("INSERT INTO poll_choices (nid, chtext, chvotes, chorder) VALUES ('%d', '%s', '%d', '%d')", $node->nid, $node->choice[$i], $node->chvotes[$i], $i); + db_query("INSERT INTO poll_choices (nid, chtext, chvotes, chorder) VALUES ('%d', '%s', '%d', '%d')", $node->nid, filter($node->choice[$i]), $node->chvotes[$i], $i); } } } |