mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 10:49:23 +02:00
validate_ip bugfix
This commit is contained in:
parent
d5a11cbc76
commit
f64d190e54
@ -231,7 +231,7 @@ function validate_name($string) {
|
||||
// Checks if an IPv4(or localhost IPv6) address is valid
|
||||
function validate_ip($ip) {
|
||||
$ipL = safeIp2Long($ip);
|
||||
$ipR = long2ip($ipL);
|
||||
$ipR = long2ip((int)$ipL);
|
||||
|
||||
if ($ip === $ipR) {
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user