From d8ec9b9fdd6fb5a29e762ecd95d440f8942ca382 Mon Sep 17 00:00:00 2001 From: rvelices Date: Sat, 30 Oct 2010 11:32:11 +0000 Subject: feature 1915: add protection on user registration against robots git-svn-id: http://piwigo.org/svn/trunk@7495 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/picture_comment.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/picture_comment.inc.php') diff --git a/include/picture_comment.inc.php b/include/picture_comment.inc.php index cc4970a34..adf928bbb 100644 --- a/include/picture_comment.inc.php +++ b/include/picture_comment.inc.php @@ -198,7 +198,7 @@ SELECT if (isset($edit_comment) and ($row['id'] == $edit_comment)) { $tpl_comment['IN_EDIT'] = true; - $key = get_comment_post_key($page['image_id']); + $key = get_comment_post_key(2, $page['image_id']); $tpl_comment['KEY'] = $key; $tpl_comment['CONTENT'] = $row['content']; } @@ -233,7 +233,7 @@ SELECT if ($show_add_comment_form) { - $key = get_comment_post_key($page['image_id']); + $key = get_ephemeral_key(3, $page['image_id']); $content = ''; if ('reject'===@$comment_action) { -- cgit v1.2.3