fix: [copy pasta fail] left previous assignment in that is now superseeded by the if branch above

pull/92/head
iglocska 2022-02-20 15:07:58 +01:00
parent 9245b2d720
commit b67c221476
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 0 additions and 1 deletions

View File

@ -25,7 +25,6 @@ class FloodProtectionComponent extends Component
} else {
$this->remote_ip = '127.0.0.1';
}
$this->remote_ip = $_SERVER[$ip_source];
$temp = explode(PHP_EOL, $_SERVER[$ip_source]);
if (count($temp) > 1) {
$this->remote_ip = $temp[0];