diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-10-29 23:39:41 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-10-29 23:39:41 +0000 |
commit | 831694b4d1a1e93b5ed6a8e1e4a0c80d21df95cd (patch) | |
tree | 9a31419b292aad362bacbb83773c90d8060545e7 /picture.php | |
parent | f33617a5b85fd9c842e4e415aebe9dd213595783 (diff) |
- 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
Diffstat (limited to 'picture.php')
-rw-r--r-- | picture.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |