diff --git a/comments-bundle/src/Resources/contao/classes/Comments.php b/comments-bundle/src/Resources/contao/classes/Comments.php index bb7dd583fb5..e820b850cca 100644 --- a/comments-bundle/src/Resources/contao/classes/Comments.php +++ b/comments-bundle/src/Resources/contao/classes/Comments.php @@ -336,7 +336,7 @@ protected function renderCommentForm(FrontendTemplate $objTemplate, \stdClass $o 'email' => $arrWidgets['email']->value, 'website' => $strWebsite, 'comment' => $this->convertLineFeeds($strComment), - 'ip' => $this->anonymizeIp(\Environment::get('ip')), + 'ip' => \Environment::get('ip'), 'date' => $time, 'published' => ($objConfig->moderate ? '' : 1) ); @@ -533,7 +533,7 @@ public static function addCommentsSubscription(CommentsModel $objComment) 'email' => $objComment->email, 'url' => \Environment::get('request'), 'addedOn' => $time, - 'ip' => \System::anonymizeIp(\Environment::get('ip')), + 'ip' => \Environment::get('ip'), 'tokenConfirm' => md5(uniqid(mt_rand(), true)), 'tokenRemove' => md5(uniqid(mt_rand(), true)) );