We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a366683 commit d3a2800Copy full SHA for d3a2800
1 file changed
ucp/controller/webpush.php
@@ -458,7 +458,7 @@ public function unsubscribe(symfony_request $symfony_request): JsonResponse
458
459
$data = json_sanitizer::decode($symfony_request->get('data', ''));
460
461
- $endpoint = $data['endpoint'];
+ $endpoint = is_string($data['endpoint'] ?? null) ? $data['endpoint'] : '';
462
463
$sql = 'DELETE FROM ' . $this->push_subscriptions_table . '
464
WHERE user_id = ' . (int) $this->user->id() . "
0 commit comments