We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dca06d commit f2552cdCopy full SHA for f2552cd
src/Authentication/HMAC/HmacEncrypter.php
@@ -56,7 +56,7 @@ public function decrypt(string $encString): string
56
{
57
$matches = [];
58
// check for a match
59
- if (preg_match('/^\$b6\$(\w+?)\$(.+)$/', $encString, $matches) !== 1) {
+ if (preg_match('/^\$b6\$(\w+?)\$(.+)\z/', $encString, $matches) !== 1) {
60
throw new EncryptionException('Unable to decrypt string');
61
}
62
0 commit comments