summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-07 16:35:03 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-07 16:35:03 +0000
commitf3a8fa9ea8cc3e807f066c43e6ab240c204941ee (patch)
tree1fde4a9b48e241ec81c08e986eae7bad5cf9d78e /modules/comment
parentdde5c67ba041dc65588377808b1943fdd3b57bf6 (diff)
downloadbrdo-f3a8fa9ea8cc3e807f066c43e6ab240c204941ee.tar.gz
brdo-f3a8fa9ea8cc3e807f066c43e6ab240c204941ee.tar.bz2
- Patch #763444 by jpmckinney: user_cookie_save() has a weird/awkward function signature.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 83834b613..113275157 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -2104,7 +2104,7 @@ function comment_form_submit($form, &$form_state) {
if (user_access('post comments') && (user_access('administer comments') || $node->comment == COMMENT_NODE_OPEN)) {
// Save the anonymous user information to a cookie for reuse.
if (!$comment->uid) {
- user_cookie_save($form_state['values']);
+ user_cookie_save(array_intersect_key($form_state['values'], array_flip(array('name', 'mail', 'homepage'))));
}
comment_save($comment);