Skip to content

Commit f689745

Browse files
Make mago happy
1 parent 9e6a01e commit f689745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/http/src/Session/VerifyCsrfMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private function ensureTokenMatches(Request $request): void
7878
urldecode($request->headers->get(self::CSRF_HEADER_KEY)),
7979
);
8080
} catch (EncryptionException) {
81-
// If decryption fails, treat it as a mismatch
81+
throw new CsrfTokenDidNotMatch();
8282
}
8383
}
8484

0 commit comments

Comments
 (0)