Skip to content

Commit 2e20c63

Browse files
committed
fix(graphql): property security might be cached w/ different objects
1 parent 1ccbe53 commit 2e20c63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Serializer/ItemNormalizer.php

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public function normalize(mixed $object, ?string $format = null, array $context
8989

9090
if ($this->isCacheKeySafe($context)) {
9191
$context['cache_key'] = $this->getCacheKey($format, $context);
92+
} else {
93+
$context['cache_key'] = false;
9294
}
9395

9496
unset($context['operation_name'], $context['operation']); // Remove operation and operation_name only when cache key has been created

0 commit comments

Comments
 (0)