mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
[SECURITY] Fix IP-based rate-limiting
Co-authored-by: Celestine <34442450+rem-pai@users.noreply.github.com>
This commit is contained in:
parent
343315a858
commit
aed731a59f
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class IPs
|
|||
if(!$bip)
|
||||
throw new \UnexpectedValueException("Malformed IP address");
|
||||
|
||||
$res = $this->ips->get($bip);
|
||||
$res = $this->ips->where("ip", $bip)->fetch();
|
||||
if(!$res) {
|
||||
$res = new IP;
|
||||
$res->setIp($ip);
|
||||
|
|
Loading…
Reference in a new issue