mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
- 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
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user