Skip to content

Commit f2552cd

Browse files
committed
Replaced $ in regex
1 parent 8dca06d commit f2552cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Authentication/HMAC/HmacEncrypter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function decrypt(string $encString): string
5656
{
5757
$matches = [];
5858
// check for a match
59-
if (preg_match('/^\$b6\$(\w+?)\$(.+)$/', $encString, $matches) !== 1) {
59+
if (preg_match('/^\$b6\$(\w+?)\$(.+)\z/', $encString, $matches) !== 1) {
6060
throw new EncryptionException('Unable to decrypt string');
6161
}
6262

0 commit comments

Comments
 (0)