mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Another possible fix for #37 -- issues with 64-bit numbers
This commit is contained in:
parent
b038036724
commit
8ef4033bf5
@ -111,14 +111,14 @@ $before = "9223372036854775807";
|
||||
$after = 0;
|
||||
|
||||
if (isset($_GET['before']) && is_string($_GET['before'])) {
|
||||
if (filter_var($_GET['before'], FILTER_VALIDATE_INT)) {
|
||||
$before = (int)$_GET['before'];
|
||||
if (filter_var($_GET['before'], FILTER_VALIDATE_FLOAT)) {
|
||||
$before = $_GET['before'];
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET['after']) && is_string($_GET['after'])) {
|
||||
if (filter_var($_GET['after'], FILTER_VALIDATE_INT)) {
|
||||
$after = (int)$_GET['after'];
|
||||
if (filter_var($_GET['after'], FILTER_VALIDATE_FLOAT)) {
|
||||
$after = $_GET['after'];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user