From a3c988c43f9bbbd91119c70735ac0a73bbf8287d Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 24 May 2018 15:48:38 +0200 Subject: [PATCH] Add more checks to ids in CartController destroy function --- Changelog | 1 + app/Http/Controllers/CartController.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index f1dcd579f..bd818aecb 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-05-24 DariusIII + * Chg: Add more checks to ids in CartController destroy function * Chg: Update QueueController * Fix: Fix deletion from cart when using multioperation * Chg: Update barryvdh/laravel-debugbar to version 3.1.5 diff --git a/app/Http/Controllers/CartController.php b/app/Http/Controllers/CartController.php index 1b5ddeb15..c250c6d70 100644 --- a/app/Http/Controllers/CartController.php +++ b/app/Http/Controllers/CartController.php @@ -66,7 +66,7 @@ class CartController extends BasePageController { $this->setPrefs(); $ids = null; - if (! empty($id)) { + if (! empty($id) && ! \is_array($id)) { $ids = explode(',', $id); } elseif (\is_array($id)) { $ids = $id;