From 8bf880052335115bc76f249672ebe68c184c2c09 Mon Sep 17 00:00:00 2001 From: Mark Magyar <14284867+xHeaven@users.noreply.github.com> Date: Sat, 27 May 2023 21:18:06 +0200 Subject: [PATCH] use empty string comparison instead of strlen call --- lib/TwoFactorAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TwoFactorAuth.php b/lib/TwoFactorAuth.php index 0c7534d..88ea174 100644 --- a/lib/TwoFactorAuth.php +++ b/lib/TwoFactorAuth.php @@ -239,7 +239,7 @@ class TwoFactorAuth private function base32Decode(string $value): string { - if (strlen($value) == 0) { + if ($value === '') { return ''; }