We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 297a455 commit a7a8af7Copy full SHA for a7a8af7
1 file changed
qa-include/app/users.php
@@ -1345,11 +1345,11 @@ function qa_check_form_security_code($action, $value)
1345
} else {
1346
$parts = explode('-', $value);
1347
1348
- if (count($parts) == 3) {
1349
- $loggedin = $parts[0];
1350
- $timestamp = $parts[1];
+ if (count($parts) === 3) {
+ $loggedin = (int) $parts[0];
+ $timestamp = (int) $parts[1];
1351
$hash = $parts[2];
1352
- $timenow = qa_opt('db_time');
+ $timenow = (int) qa_opt('db_time');
1353
1354
if ($timestamp > $timenow) {
1355
$reportproblems[] = 'time ' . ($timestamp - $timenow) . 's in future';
0 commit comments