From 3adb3e54e52e06a65a265965b05422ff3632cfcf Mon Sep 17 00:00:00 2001 From: Mark Magyar <14284867+xHeaven@users.noreply.github.com> Date: Sat, 27 May 2023 21:13:02 +0200 Subject: [PATCH] add missing delimiter for proper escaping --- lib/TwoFactorAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TwoFactorAuth.php b/lib/TwoFactorAuth.php index eccd258..a9820d1 100644 --- a/lib/TwoFactorAuth.php +++ b/lib/TwoFactorAuth.php @@ -242,7 +242,7 @@ class TwoFactorAuth return ''; } - if (preg_match('/[^' . preg_quote(self::$_base32dict) . ']/', $value) !== 0) { + if (preg_match('/[^' . preg_quote(self::$_base32dict, '/') . ']/', $value) !== 0) { throw new TwoFactorAuthException('Invalid base32 string'); }