mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-17 15:15:04 +00:00
add missing delimiter for proper escaping
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user