From 65a2f5a4f5d109f6292dbcac49026fe21e98b571 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Fri, 13 Nov 2015 21:56:06 +0100 Subject: [PATCH] add a sleep() when a bad password is provided --- f.php | 1 + script.php | 1 + 2 files changed, 2 insertions(+) diff --git a/f.php b/f.php index a272ad5..0218602 100644 --- a/f.php +++ b/f.php @@ -180,6 +180,7 @@ if (!empty ($link['key'])) $password_challenged = true; else { + sleep (2); require (JIRAFEAU_ROOT.'lib/template/header.php'); echo '

' . t('Access denied') . '

'; diff --git a/script.php b/script.php index cafd10c..b9a6e92 100644 --- a/script.php +++ b/script.php @@ -189,6 +189,7 @@ elseif (isset ($_GET['h'])) } if (strlen ($link['key']) > 0 && md5 ($key) != $link['key']) { + sleep (2); echo 'Error'; exit; } -- 2.34.1