Skip to content

Commit 8ca13fa

Browse files
committed
🐛 fix casting on session('honeytime') and
Signed-off-by: otengkwame <[email protected]>
1 parent 0ba96b0 commit 8ca13fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/helpers/webby_helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,11 +1792,11 @@ function honey_check($honeypot = '')
17921792
*/
17931793
function honey_time($field = '', $time = '')
17941794
{
1795-
$honeytime = base64_decode(session('honeytime'));
1795+
$honeytime = base64_decode((string)session('honeytime'));
17961796

17971797
$time = (int) $time ?: (int) env('honeypot.time');
17981798

1799-
$seconds = time() - $honeytime;
1799+
$seconds = time() - (int)$honeytime;
18001800

18011801
if ($seconds < $time) {
18021802
return false;

0 commit comments

Comments
 (0)