From e24b02a7dcdfc32acc5074b4bca98be2882beb17 Mon Sep 17 00:00:00 2001 From: Jean Paul Galea Date: Tue, 21 Jul 2015 20:54:49 +0000 Subject: [PATCH] Refactor. - $new_otp not used afterwards, clean up to avoid reuse by mistake. --- ykval-verify.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ykval-verify.php b/ykval-verify.php index b012877..7dc8266 100644 --- a/ykval-verify.php +++ b/ykval-verify.php @@ -85,6 +85,7 @@ if (preg_match('/^[jxe.uidchtnbpygk]+$/', $otp)) $new_otp = strtr($otp, 'jxe.uidchtnbpygk', 'cbdefghijklnrtuv'); $myLog->log(LOG_INFO, "Dvorak OTP converting $otp to $new_otp"); $otp = $new_otp; + unset($new_otp); }