add missing delimiter for proper escaping

This commit is contained in:
Mark Magyar
2023-05-27 21:13:02 +02:00
parent c45f7a23c9
commit 3adb3e54e5
+1 -1
View File
@@ -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');
}