Skip to content

Commit

Permalink
[Comments] Store the full IP addresses (see contao/core-bundle#1512)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Jun 25, 2018
1 parent bee4b65 commit 21fdf11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comments-bundle/src/Resources/contao/classes/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
Expand Down Expand Up @@ -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))
);
Expand Down

0 comments on commit 21fdf11

Please sign in to comment.