From 831694b4d1a1e93b5ed6a8e1e4a0c80d21df95cd Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 29 Oct 2007 23:39:41 +0000 Subject: - send status code 403 when attempt to enter a user comment, but comments are disabled - don't increase hit count when a comment is posted - remove the check of user ip agains spamhaus.org when a comment is entered (my conclusion is that is useless) git-svn-id: http://piwigo.org/svn/trunk@2155 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'picture.php') diff --git a/picture.php b/picture.php index de2c7b8dd..89fbe04ab 100644 --- a/picture.php +++ b/picture.php @@ -244,7 +244,7 @@ DELETE FROM '.COMMENTS_TABLE.' } // incrementation of the number of hits, we do this only if no action -if (trigger_event('allow_increment_element_hit_count', true) ) +if (trigger_event('allow_increment_element_hit_count', !isset($_POST['content']) ) ) { $query = ' UPDATE -- cgit v1.2.3