[pLog-svn] r1888 - plog/branches/plog-1.0.1/class/security
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Wed Apr 20 18:20:04 GMT 2005
Author: oscar
Date: 2005-04-20 18:20:03 +0000 (Wed, 20 Apr 2005)
New Revision: 1888
Modified:
plog/branches/plog-1.0.1/class/security/bayesianfilter.class.php
Log:
fixed a bug where the IP address of comments marked as spam wasn't being saved.
Modified: plog/branches/plog-1.0.1/class/security/bayesianfilter.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/security/bayesianfilter.class.php 2005-04-20 18:16:25 UTC (rev 1887)
+++ plog/branches/plog-1.0.1/class/security/bayesianfilter.class.php 2005-04-20 18:20:03 UTC (rev 1888)
@@ -91,6 +91,7 @@
// rules makes things easier :)
if( $config->getValue( "bayesian_filter_spam_comments_action" ) == BAYESIAN_FILTER_KEEP_COMMENT_ACTION ) {
$comments = new ArticleComments();
+ $clientIp = Client::getIp();
$comment = new UserComment( $articleId, $parentId, $commentTopic, $commentText,
null, $userName, $userEmail, $userUrl, $clientIp,
0, COMMENT_STATUS_SPAM );
More information about the pLog-svn
mailing list