Skip to content

Commit f37a7be

Browse files
committed
Fix for sloppy empty IP address check
1 parent dd53f7a commit f37a7be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bfstop.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ public function onUserLoginFailure($user, $options=null)
294294
return;
295295
}
296296
$ipAddress = $this->getIPAddr();
297-
if (empty($ipaddress) || $ipaddress === '')
297+
if (empty($ipAddress) || $ipAddress === '')
298298
{
299-
$this->logger->log('Empty ip address!', JLog::ERROR);
299+
$this->logger->log('Empty IP address!', JLog::ERROR);
300300
return;
301301
}
302302
if ($this->mydb->isIPWhiteListed($ipAddress))

0 commit comments

Comments
 (0)