Possible fix for #37

This commit is contained in:
ruan 2018-07-31 17:45:42 +02:00
parent 301c10f0be
commit b038036724
No known key found for this signature in database
GPG Key ID: 0D2EC1C52E469C0B

View File

@ -105,8 +105,11 @@ if (isset($_GET['from'])) {
}
}
// PHP's PHP_INT_MAX is platform-dependent... As if int64 isn't a type under 32-bit operating systems
//$before = PHP_INT_MAX;
$before = "9223372036854775807";
$after = 0;
$before = PHP_INT_MAX;
if (isset($_GET['before']) && is_string($_GET['before'])) {
if (filter_var($_GET['before'], FILTER_VALIDATE_INT)) {
$before = (int)$_GET['before'];