Since the Age header is a non-negative integer, when the value is passed into the strtotime function the values emitted are either invalid or unintended.
Both 56 and 1056 are perfectly valid values for the Age header, yet the plugin debug page will always show a warning that they are invalid because the output of the strtotime function is less than the current time().
Since there is already a check in place to ensure that the value passed in the header is a non-negative integer, this check can safely be removed.
Since the
Age
header is a non-negative integer, when the value is passed into thestrtotime
function the values emitted are either invalid or unintended.Examples:
Both
56
and1056
are perfectly valid values for theAge
header, yet the plugin debug page will always show a warning that they are invalid because the output of thestrtotime
function is less than the currenttime()
.Since there is already a check in place to ensure that the value passed in the header is a non-negative integer, this check can safely be removed.