We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bde6a7c commit 34bd2a9Copy full SHA for 34bd2a9
1 file changed
system/Security/Security.php
@@ -295,6 +295,7 @@ private function removeTokenInRequest(IncomingRequest $request): void
295
try {
296
$json = json_decode($body, flags: JSON_THROW_ON_ERROR);
297
} catch (JsonException) {
298
+ log_message('error', 'Invalid JSON in request body during CSRF token removal');
299
$json = null;
300
}
301
@@ -346,6 +347,7 @@ private function getPostedToken(IncomingRequest $request): ?string
346
347
348
349
350
+ log_message('error', 'Invalid JSON in request body during CSRF token retrieval');
351
352
353
0 commit comments